prevent unicode strings from being interned
authorStefan Behnel <scoder@users.berlios.de>
Wed, 5 Mar 2008 17:05:27 +0000 (18:05 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Wed, 5 Mar 2008 17:05:27 +0000 (18:05 +0100)
Cython/Compiler/Symtab.py

index bd252c10b9db3dc7d2110f74b609200041b4024a..ab48aae049c3406dfa076014f7ea2bcf8cba0b85 100644 (file)
@@ -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: