PyArg_ParseTuple and dict
John Machin
sjmachin at lexicon.net
Sun Jun 5 21:42:49 EDT 2005
sjh at gmail.com wrote:
>>3. What is your platform? Which C compiler? What warnings does it give,
>>[or would it give if allowed free speech]? Are you running Python 2.4 or
>>2.4.1?
>
>
> Python 2.4 (#1, Mar 10 2005, 16:54:23) [C] on sunos5
>
> Solaris 9 x86, forte 6.2
>
warnings?
>
>
>>4. Do you get the same symptoms when you pass in a list instead of a
>>dict? What about a minimal user-created object?
>
> A list works fine, as does a 1 element tuple with a dict in it. I'm
> not sure what you mean by minimal user-created object.
>
class Muco:
pass
my_extension_func(42) # good
my_extension_func("xyzzy") # good
my_extension_func([]) # good
my_extension_func({}) # bad
my_extension_func(Muco()) # dunno yet
More information about the Python-list
mailing list