Anonymous avatar Anonymous committed e0dd3b9

add ArgumentError exception.

Comments (0)

Files changed (3)

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',

pypy/module/_ctypes/app_basics.py

+class ArgumentError(Exception):
+    pass

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):
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.