[pypy-svn] r76669 - pypy/branch/fast-ctypes/pypy/module/_ctypes
getxsick at codespeak.net
getxsick at codespeak.net
Thu Aug 19 13:35:16 CEST 2010
Author: getxsick
Date: Thu Aug 19 13:35:15 2010
New Revision: 76669
Added:
pypy/branch/fast-ctypes/pypy/module/_ctypes/app_basics.py
Modified:
pypy/branch/fast-ctypes/pypy/module/_ctypes/__init__.py
pypy/branch/fast-ctypes/pypy/module/_ctypes/app_dummy.py
Log:
add ArgumentError exception.
Modified: pypy/branch/fast-ctypes/pypy/module/_ctypes/__init__.py
==============================================================================
--- pypy/branch/fast-ctypes/pypy/module/_ctypes/__init__.py (original)
+++ pypy/branch/fast-ctypes/pypy/module/_ctypes/__init__.py Thu Aug 19 13:35:15 2010
@@ -6,13 +6,13 @@
'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',
Added: pypy/branch/fast-ctypes/pypy/module/_ctypes/app_basics.py
==============================================================================
--- (empty file)
+++ pypy/branch/fast-ctypes/pypy/module/_ctypes/app_basics.py Thu Aug 19 13:35:15 2010
@@ -0,0 +1,2 @@
+class ArgumentError(Exception):
+ pass
Modified: pypy/branch/fast-ctypes/pypy/module/_ctypes/app_dummy.py
==============================================================================
--- pypy/branch/fast-ctypes/pypy/module/_ctypes/app_dummy.py (original)
+++ pypy/branch/fast-ctypes/pypy/module/_ctypes/app_dummy.py Thu Aug 19 13:35:15 2010
@@ -1,7 +1,7 @@
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):
More information about the Pypy-commit
mailing list