This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
| Author | chris.jerdonek |
|---|---|
| Recipients | chris.jerdonek, mark.dickinson, python-dev, serhiy.storchaka |
| Date | 2012年12月27日.22:32:05 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1356647526.02.0.997315228151.issue16792@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
You can use assertIs() in 2.7 as well, no?
+ @test_support.cpython_only
+ def test_small_ints(self):
+ self.assertTrue(int('10') is 10) |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2012年12月27日 22:32:06 | chris.jerdonek | set | recipients: + chris.jerdonek, mark.dickinson, python-dev, serhiy.storchaka |
| 2012年12月27日 22:32:06 | chris.jerdonek | set | messageid: <1356647526.02.0.997315228151.issue16792@psf.upfronthosting.co.za> |
| 2012年12月27日 22:32:05 | chris.jerdonek | link | issue16792 messages |
| 2012年12月27日 22:32:05 | chris.jerdonek | create | |