This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author scoder
Recipients benjamin.peterson, rhettinger, scoder
Date 2013-03-07.19:06:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1362683214.65.0.104405289999.issue17327@psf.upfronthosting.co.za>
In-reply-to
Content
I had originally considered that name. However, what it really does is PyDict_GetItem(). In a specific special case, it sets a default value and *then* returns that. So it's still PyDict_GetItem(), just with a preceding modification. Also, the interface mimics PyDict_GetItem(). Its primary interface is a getter, not a setter.

I really think that PyDict_SetDefault() is an inappropriate name.
History
Date User Action Args
2013-03-07 19:06:54scodersetrecipients: + scoder, rhettinger, benjamin.peterson
2013-03-07 19:06:54scodersetmessageid: <1362683214.65.0.104405289999.issue17327@psf.upfronthosting.co.za>
2013-03-07 19:06:54scoderlinkissue17327 messages
2013-03-07 19:06:54scodercreate