SystemError: new style getargs format but argument is not a tuple

Thinker thinker at branda.to
Mon Feb 26 12:45:14 EST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

zefciu wrote:
> Thinker wrote:
>
>> You can add some printf() to throw out messages to make sure
>> where the program stop at. If you can compile the module with
>> debug information and use gdb to backtrace dump file, it would be
>> useful.
>
> Did it. The arguments are parsed, but the coord tuple isn't. But
> can PyArg_ParseTuple be used to tuples other than function
> arguments? If not, what should I use?
Since PyArg_ParseTuple() is supposed to parse arguments, I recommand you
to use PyTuple_GetItem() or PyTuple_GET_ITEM(). You can find more
functions
at http://docs.python.org/api/genindex.html .

- --
Thinker Li - thinker at branda.to thinker.li at gmail.com
http://heaven.branda.to/~thinker/GinGin_CGI.py
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF4xyq1LDUVnWfY8gRAilNAKDFTKwahXpuxFImhR57Yw5efAGP1wCfR/qU
o774g2YB5gMBLrUa9YltDSQ=
=/tWC
-----END PGP SIGNATURE-----




More information about the Python-list mailing list