CPython 3.1.1 docs error in noddy3 example?
Alf P. Steinbach /Usenet
alf.p.steinbach+usenet at gmail.com
Mon Jul 19 08:41:13 EDT 2010
"Extending and Embedding the Python Interpreter" §2.1.2, the noddy3 extension
module example, uses "S" as format character for string arguments in its call to
PyArg_ParseTupleAndKeywords.
This causes Noddy to only accept bytes as arguments, instead of strings (format
"U").
I suspect this is a leftover from Python 2.x, where strings were bytes, and that
this is a bug?
Cheers,
- Alf
--
blog at <url: http://alfps.wordpress.com>
More information about the Python-list
mailing list