extracting null pointer address from PyCObject with ctypes

Gordon Allott gordallott at gmail.com
Sat Oct 11 14:59:23 EDT 2008


Aaron "Castironpi" Brady wrote:
> 
> What does print pythonapi.PyCObject_AsVoidPtr(display) give you?
> --
> http://mail.python.org/mailman/listinfo/python-list

Traceback (most recent call last):
  File "pygametest.py", line 125, in <module>
    app = PyGameOGREApp()
  File "pygametest.py", line 33, in __init__
    self._createWindow(width, height, fullscreen)
  File "pygametest.py", line 65, in _createWindow
    print pythonapi.PyCObject_AsVoidPtr(display)
ctypes.ArgumentError: argument 1: <type 'exceptions.TypeError'>: Don't
know how to convert parameter 1


-- 
Gord Allott (gordallott at gmail.com)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/python-list/attachments/20081011/cf4fb557/attachment-0001.sig>


More information about the Python-list mailing list