From: Robert Bradshaw Date: Thu, 22 Oct 2009 04:25:12 +0000 (-0700) Subject: Fix #431, intern() doesn't work for python strings with 0 characters. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=eeb23d53f5cd12aace855dba227fbf9aca73c50e;p=cython.git Fix #431, intern() doesn't work for python strings with 0 characters. --- diff --git a/Cython/Compiler/Builtin.py b/Cython/Compiler/Builtin.py index 64f8969c..69f160a1 100644 --- a/Cython/Compiler/Builtin.py +++ b/Cython/Compiler/Builtin.py @@ -28,7 +28,7 @@ builtin_function_table = [ #('hex', "", "", ""), #('id', "", "", ""), #('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"), ('issubclass', "OO", "b", "PyObject_IsSubclass"), ('iter', "O", "O", "PyObject_GetIter"),