From db6f98962f9180ad7dcfc6d0d8f68279c3eeda3f Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sun, 14 Mar 2010 11:59:07 +0100 Subject: [PATCH] provide 'set' builtin type in 'cython' namespace to make it available in Py2.3 --- Cython/Shadow.py | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.26.2