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

Michael Hudson mwh at python.net
Wed Aug 11 15:57:41 CEST 2004


Greg Chapman <glc at well.com> writes:

> 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.

Argh, thanks.  I'll fix that soon (the source is at home on the
laptop).

Who designed this API? <wink>.

Cheers,
mwh

-- 
  : Giant screaming pieces of excrement, they are.
  I have a feeling that some of the people in here have a 
  MUCH more exciting time relieving themselves than I do.
                                       -- Mike Sphar & Dave Brown, asr


More information about the Doc-SIG mailing list