Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #51987

Re: PyArg_ParseTuple() when the type could be anything?

Newsgroups comp.lang.python
Date 2013-08-05 15:55 -0700
References <d89fba21-68b0-47b4-818b-2c8e80b35ff8@googlegroups.com>
Message-ID <7756ab34-3545-4dba-8a7e-c94d469681ce@googlegroups.com> (permalink)
Subject Re: PyArg_ParseTuple() when the type could be anything?
From "David M. Cotter" <me@davecotter.com>

Show all headers | View raw


i was able to get what i wanted by simply iterating over the tupile instead of using ParseTupile, then just query the type, then convert the type to C and move on to the next.  totally great, now i can pass N different argument types to a single function, and have the C side deal gracefully with whatever types are sent.

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

PyArg_ParseTuple() when the type could be anything? "David M. Cotter" <me@davecotter.com> - 2013-08-02 17:55 -0700
  Re: PyArg_ParseTuple() when the type could be anything? Stefan Behnel <stefan_ml@behnel.de> - 2013-08-03 16:31 +0200
  Re: PyArg_ParseTuple() when the type could be anything? "David M. Cotter" <me@davecotter.com> - 2013-08-05 15:55 -0700

csiph-web