From 33c9c46380b0e77d64cb85305eb0114843760e75 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Wed, 5 Mar 2008 18:05:27 +0100 Subject: [PATCH] prevent unicode strings from being interned --- Cython/Compiler/Symtab.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.26.2