Message169747
Varun: what do you think that
py> x = [1.0, 2.0, 3.0]
py> x.count(3)
1
should give? I think most people will agree that there is one single "three" in the list, as 3 and 3.0 are equal in all other contexts as well (as is 3.0+0j). If types were considered, this would give 0. |
|
Date |
User |
Action |
Args |
2012-09-03 05:51:04 | loewis | set | recipients:
+ loewis, alex, varun_masuraha |
2012-09-03 05:51:03 | loewis | set | messageid: <1346651463.97.0.421538024409.issue15850@psf.upfronthosting.co.za> |
2012-09-03 05:51:03 | loewis | link | issue15850 messages |
2012-09-03 05:51:03 | loewis | create | |
|