[Doc-SIG] Re: partial rewrite of the "extending and embedding" manual

Greg Chapman glc at well.com
Wed Aug 11 15:31:57 CEST 2004


On Sat, 07 Aug 2004 16:05:27 +0100, Michael Hudson <mwh at python.net> wrote:

>Comments welcome.  Feel free to be very critical of what's there, and
>suggestions of missing material are also welcome.  I'm quite keen on
>the idea of it all being in one person's (i.e. mine, unless someone
>much more enthusiastic takes over) prose style, so I'm not
>particularly looking for contributions of content (but obviously can
>handle such, if you're prepared to see me rewrite your carefully
>wrought sentences :-).
>

There is a thinko that shows up in a couple of places:

http://starship.python.net/crew/mwh/toext/node5.html :

"PyArg_UnpackTuple returns 0 on success and -1 on failure." (and the following
discussion).

then http://starship.python.net/crew/mwh/toext/node7.html :

 "Attempting to pass values that cannot be implicitly converted to Python
integers - strings or files, say - will result in PyArg_ParseTuple setting an
exception or returning -1".

Of course, all the PyArg_XXX functions return true on success and false on
failure, as shown in your example code.

---
Greg Chapman




More information about the Doc-SIG mailing list