Commits

mattip committed f06471f

fix for uninitialized _argtypes_, tested in ctypes\test\test_random_things

  • Participants
  • Parent commits ba86c4d
  • Branches win32-stdlib

Comments (0)

Files changed (2)

lib-python/2.7/ctypes/test/test_random_things.py

 
             hdll = windll.kernel32.LoadLibraryA("kernel32")
             funcaddr = windll.kernel32.GetProcAddress(hdll, "GetModuleHandleA")
-
             self.assertEqual(call_function(funcaddr, (None,)),
                                  windll.kernel32.GetModuleHandleA(None))
 

lib_pypy/_ctypes/function.py

 class CFuncPtr(_CData):
     __metaclass__ = CFuncPtrType
 
-    _argtypes_ = None
+    _argtypes_ = []
     _restype_ = None
     _errcheck_ = None
     _flags_ = 0