[pycrypto] Issue with the new random.choice() unit test

Thorsten Behrens sbehrens at gmx.li
Thu Jan 6 06:16:00 CST 2011

On 1/5/2011 2:14 PM, Paul Koning wrote:
> So what's the problem? Membership testing for dicts was only added in py2.2.
> True for "k in d" but "d.has_key(k)" works in 2.1.  Unfortunately, it doesn't work in Python 3.  But it would be easy enough to subclass dict and add that method to it in Python 3.
No need, 2to3 takes care of has_key. I've made the change. Thanks!


More information about the pycrypto mailing list