Commits

Anonymous committed 9496b56

Preliminary Python 2.3 support

  • Participants
  • Parent commits e556697
  • Branches ctypes-soc

Comments (0)

Files changed (1)

             if args:
                 _f._args = args
             _f.__doc__ = doc
-            _f.func_name = name
+            try:
+                _f.func_name = name
+            except TypeError: # read-only in Python 2.3
+                pass
             return _f
 
         # Ok, get function from ctypes
         if args:
             _f._args = args
         _f.__doc__ = doc
-        _f.func_name = name
+        try:
+            _f.func_name = name
+        except TypeError: # read-only in Python 2.3
+            pass
         return _f
 
 # Shortcuts to the SDL core library