cython-devel
changeset 2545:015626586350
Fix #431, intern() doesn't work for python strings with 0 characters.
| author | Robert Bradshaw <robertwb@math.washington.edu> |
|---|---|
| date | Wed Oct 21 21:25:12 2009 -0700 (2 years ago) |
| parents | 1f0d7bae2d4e |
| children | e5f27d38aa24 |
| files | Cython/Compiler/Builtin.py |
line diff
1.1 --- a/Cython/Compiler/Builtin.py Tue Oct 20 22:31:39 2009 +0200
1.2 +++ b/Cython/Compiler/Builtin.py Wed Oct 21 21:25:12 2009 -0700
1.3 @@ -28,7 +28,7 @@
1.4 #('hex', "", "", ""),
1.5 #('id', "", "", ""),
1.6 #('input', "", "", ""),
1.7 - ('intern', "s", "O", "__Pyx_InternFromString"),
1.8 + #('intern', "s", "O", "__Pyx_InternFromString"), # Doesn't work for Python str objects with null characters.
1.9 ('isinstance', "OO", "b", "PyObject_IsInstance"),
1.10 ('issubclass', "OO", "b", "PyObject_IsSubclass"),
1.11 ('iter', "O", "O", "PyObject_GetIter"),
