From: Stefan Behnel Date: Wed, 5 Mar 2008 17:05:27 +0000 (+0100) Subject: prevent unicode strings from being interned X-Git-Tag: 0.9.6.14~29^2~22^2~1 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=33c9c46380b0e77d64cb85305eb0114843760e75;p=cython.git prevent unicode strings from being interned --- diff --git a/Cython/Compiler/Symtab.py b/Cython/Compiler/Symtab.py index bd252c10..ab48aae0 100644 --- a/Cython/Compiler/Symtab.py +++ b/Cython/Compiler/Symtab.py @@ -442,7 +442,7 @@ class Scope: # Python identifier, it will be interned. if not entry.pystring_cname: value = entry.init - if identifier_pattern.match(value): + if identifier_pattern.match(value) and isinstance(value, str): entry.pystring_cname = self.intern(value) entry.is_interned = 1 else: