Message218364
> What I was doing wrong?
The "is" operator should only be used to compare identical objects. Small integers (range -5..255 if I remember correctly) are singletons. I prefer to not rely on this implementation detail in a unit test of the Python standard library. |
|
Date |
User |
Action |
Args |
2014-05-12 21:18:41 | vstinner | set | recipients:
+ vstinner, rhettinger, jcea, mark.dickinson, pitrou, Arfrever, r.david.murray, python-dev, francismb, serhiy.storchaka |
2014-05-12 21:18:41 | vstinner | set | messageid: <1399929521.66.0.22538391131.issue21422@psf.upfronthosting.co.za> |
2014-05-12 21:18:41 | vstinner | link | issue21422 messages |
2014-05-12 21:18:41 | vstinner | create | |
|