This post originated from an RSS feed registered with Python Buzz
by Baiju M.
Original Post: getdefault method for python dictionary
Feed Title: Programming life without Python(?)
Feed URL: http://baijum81.livejournal.com/data/rss
Feed Description: Programming life without Python(?)
Blogger says that Python's dictionary method, 'setdefault' without explicit default is confusing and useless. Now I think there should be a 'getdefault' method which also requires two explicit arguments, it will return explicit default if no key exists.