[New-bugs-announce] [issue21903] ctypes documentation MessageBoxA example produces error

Dan O'Donovan report at bugs.python.org
Wed Jul 2 11:14:49 CEST 2014


New submission from Dan O'Donovan:

There is an example in the ctypes python3 documentation for producing a native Windows MessageBoxA 

https://docs.python.org/3.3/library/ctypes.html#ctypes.PYFUNCTYPE

Try as I might, I cannot get this example to run under python 3 (it is in the python3 documentation) - it always produces an error

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ctypes.ArgumentError: argument 2: <class 'TypeError'>: wrong type

I apologise for not attaching a fix, I have tried and cannot find one.

----------
assignee: docs at python
components: Documentation
messages: 222088
nosy: Dan.O'Donovan, docs at python
priority: normal
severity: normal
status: open
title: ctypes documentation MessageBoxA example produces error
type: behavior
versions: Python 3.3, Python 3.4

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21903>
_______________________________________


More information about the New-bugs-announce mailing list