From: Stefan Behnel Date: Sun, 14 Mar 2010 10:59:07 +0000 (+0100) Subject: provide 'set' builtin type in 'cython' namespace to make it available in Py2.3 X-Git-Tag: 0.13.beta0~298 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=db6f98962f9180ad7dcfc6d0d8f68279c3eeda3f;p=cython.git provide 'set' builtin type in 'cython' namespace to make it available in Py2.3 --- diff --git a/Cython/Shadow.py b/Cython/Shadow.py index 63269ca3..6b638d73 100644 --- a/Cython/Shadow.py +++ b/Cython/Shadow.py @@ -160,6 +160,12 @@ try: except NameError: # Py3 py_long = int +try: + set = __builtins__.set +except AttributeError: + # Py 2.3 + from sets import Set as set + # Predefined types