Skip to content

Commit 2a79d02

Browse files
committed
Init UUID members explicitly; drop the freelist decorator
1 parent 548afd3 commit 2a79d02

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

uuid.pyx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ cdef pg_uuid_from_buf(const char *buf):
100100

101101
@cython.final
102102
@cython.no_gc_clear
103-
@cython.freelist(128)
104103
cdef class UUID(__UUIDReplaceMe):
105104

106105
cdef:
@@ -109,6 +108,10 @@ cdef class UUID(__UUIDReplaceMe):
109108
object _hash
110109
object __weakref__
111110

111+
def __cinit__(self):
112+
self._int = None
113+
self._hash = None
114+
112115
def __init__(self, inp):
113116
cdef:
114117
char *buf

0 commit comments

Comments
 (0)