Message78086
It has been pointed out to me that xrange() objects are hashable in 2.x,
and since these range objects are immutable, I don't believe there is
any driving reason for them not to be hashable.
At that point the question becomes one of why xrange() is being
initialised correctly in 2.x while something is going wrong with the
tp_hash slot initialisation for range() in 3.x that doesn't get fixed
until PyType_Ready is called to populate tp_dict. |
|
Date |
User |
Action |
Args |
2008-12-20 06:51:29 | ncoghlan | set | recipients:
+ ncoghlan, rhettinger, amaury.forgeotdarc, eric.smith, gpolo, hagen |
2008-12-20 06:51:28 | ncoghlan | set | messageid: <1229755888.97.0.55180117831.issue4701@psf.upfronthosting.co.za> |
2008-12-20 06:51:27 | ncoghlan | link | issue4701 messages |
2008-12-20 06:51:26 | ncoghlan | create | |
|