Roundup Tracker - Issues

Message4543

Author ced
Recipients ber, ced, schlatterbeck, willkg
Date 2012-05-02.14:44:06
Message-id <20120502144404.GC4427@tetsuo.ced.homedns.org>
In-reply-to <1335969283.99.0.184851331153.issue2550712@psf.upfronthosting.co.za>
On 02/05/12 14:34 +0000, Bernhard Reiter wrote:
> Cool! (I was just thinking aloud. Note that my python doc from 2.5 says
> that has_key() should be used in modern code, I did not look up why.)

See http://docs.python.org/library/stdtypes.html#dict.has_key
Indeed has_key was removed in Python3 and “key in d” is more Pythonic ;-)
History
Date User Action Args
2012-05-02 14:44:06cedsetrecipients: + ced, schlatterbeck, ber, willkg
2012-05-02 14:44:06cedlinkissue2550712 messages
2012-05-02 14:44:06cedcreate