From: Robert Bradshaw Date: Thu, 4 Feb 2010 21:57:58 +0000 (-0800) Subject: Fix class in template specialization. X-Git-Tag: 0.13.beta0~353^2~3 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6bb2e08f37603f1e1f765dced94c20ef98920fe4;p=cython.git Fix class in template specialization. --- diff --git a/Cython/Compiler/PyrexTypes.py b/Cython/Compiler/PyrexTypes.py index e60ced01..4f068ace 100755 --- a/Cython/Compiler/PyrexTypes.py +++ b/Cython/Compiler/PyrexTypes.py @@ -1846,6 +1846,8 @@ class CppClassType(CType): return self.specialize(dict(zip(self.templates, template_values))) def specialize(self, values): + if not self.templates: + return self key = tuple(values.items()) if key in self.specializations: return self.specializations[key]