Commit eeb23d53 authored by Robert Bradshaw's avatar Robert Bradshaw

Fix #431, intern() doesn't work for python strings with 0 characters.

parent 137545fd
...@@ -28,7 +28,7 @@ builtin_function_table = [ ...@@ -28,7 +28,7 @@ builtin_function_table = [
#('hex', "", "", ""), #('hex', "", "", ""),
#('id', "", "", ""), #('id', "", "", ""),
#('input', "", "", ""), #('input', "", "", ""),
('intern', "s", "O", "__Pyx_InternFromString"), #('intern', "s", "O", "__Pyx_InternFromString"), # Doesn't work for Python str objects with null characters.
('isinstance', "OO", "b", "PyObject_IsInstance"), ('isinstance', "OO", "b", "PyObject_IsInstance"),
('issubclass', "OO", "b", "PyObject_IsSubclass"), ('issubclass', "OO", "b", "PyObject_IsSubclass"),
('iter', "O", "O", "PyObject_GetIter"), ('iter', "O", "O", "PyObject_GetIter"),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment