chiark
/
gitweb
/
~mdw
/
mLib-python
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Announce 1.0.2.
[mLib-python]
/
unihash.pyx
diff --git
a/unihash.pyx
b/unihash.pyx
index 565959f77814abe668e30798fbe4e2dca77146d3..5326ad20eacebfbda1472e664e70568846f2aced 100644
(file)
--- a/
unihash.pyx
+++ b/
unihash.pyx
@@
-31,7
+31,7
@@
def setglobalkey(uint32 k):
cdef class Key:
cdef unihash_info _i
cdef uint32 _k
cdef class Key:
cdef unihash_info _i
cdef uint32 _k
- def __
new
__(me, uint32 k):
+ def __
cinit
__(me, uint32 k):
unihash_setkey(&me._i, k)
me._k = k
property k:
unihash_setkey(&me._i, k)
me._k = k
property k:
@@
-42,7
+42,7
@@
cdef class Unihash:
cdef uint32 _a
cdef readonly Key key
cdef unihash_info *_i
cdef uint32 _a
cdef readonly Key key
cdef unihash_info *_i
- def __
new
__(me, key = None):
+ def __
cinit
__(me, key = None):
cdef Key k
me.key = key
if key is None:
cdef Key k
me.key = key
if key is None: