Filip Gruszczyński <grusz...@gmail.com> added the comment:

My first intention was simply to push mapping from args to kwargs, just like 
Eric suggested, but that didn't help with __missing__, only with accepting a 
dict instead of pushing keyword arguments.

I didn't like explicitly asking for __missing__ either, but since I have little 
knowledge of what should be called, I didn't know what to use. I too believe 
something else the PyDict_GetItem should be called, something that would take 
care of __missing__ and other possibilities (I don't know what exactly and 
really would like to know what these are) internally.

I am going to check, whether PyMapping_GetItemString is going to help. But can 
this really be called on a dict (or a subclass of dict)? What about retrieving 
getitem method from the given object and simply calling it? Wouldn't that do 
the trick?

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue6081>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to