From eeb23d53f5cd12aace855dba227fbf9aca73c50e Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Wed, 21 Oct 2009 21:25:12 -0700 Subject: [PATCH] Fix #431, intern() doesn't work for python strings with 0 characters. --- Cython/Compiler/Builtin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"), -- 2.26.2