Commits

Anonymous committed e0dd3b9

add ArgumentError exception.

  • Participants
  • Parent commits a19ab4d
  • Branches fast-ctypes

Comments (0)

Files changed (3)

File pypy/module/_ctypes/__init__.py

         'Test' : 'interp_test.W_Test',
     }
     appleveldefs = {
+        'ArgumentError' : 'app_basics.ArgumentError',
         '_SimpleCData' : 'app_dummy._SimpleCData',
         '_Pointer' : 'app_dummy._Pointer',
         'CFuncPtr' : 'app_dummy.CFuncPtr',
         'Union' : 'app_dummy.Union',
         'Structure' : 'app_dummy.Structure',
         'Array' : 'app_dummy.Array',
-        'ArgumentError' : 'app_dummy.ArgumentError',
         'sizeof' : 'app_dummy.sizeof',
         'byref' : 'app_dummy.byref',
         'addressof' : 'app_dummy.addressof',

File pypy/module/_ctypes/app_basics.py

+class ArgumentError(Exception):
+    pass

File pypy/module/_ctypes/app_dummy.py

 class DummyClass(object):
     def __init__(self, *args, **kwargs):
         raise NotImplementedError("not-implemented ctypes function")
-_Pointer = Union = Structure = Array = ArgumentError = DummyClass
+_Pointer = Union = Structure = Array = DummyClass
 
 class CFuncPtr(object):
     def __init__(self, *args, **kwargs):