Message321515
| Author | serhiy.storchaka |
|---|
| Recipients | Dan Rose, mark.dickinson, methane, serhiy.storchaka, vstinner |
|---|
| Date | 2018-07-12.04:52:16 |
|---|
| SpamBayes Score | -1.0 |
|---|
| Marked as misclassified | Yes |
|---|
| Message-id | <1531371136.95.0.56676864532.issue34100@psf.upfronthosting.co.za> |
|---|
| In-reply-to | |
|---|
| Content |
|---|
This is not only with integers.>>> a = ((1, 2), (1, 2))>>> a[0] is a[1]False>>> a = ('@#$', '@#$')>>> a[0] is a[1]False>>> a = (1.0, 1.0)>>> a[0] is a[1]FalseThe only exception is short ASCII identifier-like strings (as a side effect of interning them):>>> a = ('foo', 'foo')>>> a[0] is a[1]TrueI'm not sure this is a problem which should be resolved. |
|