Author gruszczy
Recipients ebehar, eric.smith, ezio.melotti, gruszczy, r.david.murray, rhettinger
Date 2010-03-18.21:25:53
SpamBayes Score 4.94719e-09
Marked as misclassified No
Message-id <1268947555.41.0.290182208907.issue6081@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2010-03-18 21:25:55gruszczysetrecipients: + gruszczy, rhettinger, eric.smith, ezio.melotti, r.david.murray, ebehar
2010-03-18 21:25:55gruszczysetmessageid: <1268947555.41.0.290182208907.issue6081@psf.upfronthosting.co.za>
2010-03-18 21:25:54gruszczylinkissue6081 messages
2010-03-18 21:25:53gruszczycreate