Message257246
| Author |
serhiy.storchaka |
| Recipients |
rhettinger, serhiy.storchaka |
| Date |
2015年12月31日.03:00:07 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1451530808.08.0.846479857852.issue25981@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Indeed, keys of __dict__ are interned. But elements of _fields are not.
>>> A = namedtuple('A', 'abc123 def456')
>>> sorted(A.__dict__)[-1] == A._fields[-1]
True
>>> sorted(A.__dict__)[-1] is A._fields[-1]
False |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2015年12月31日 03:00:08 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, rhettinger |
| 2015年12月31日 03:00:08 | serhiy.storchaka | set | messageid: <1451530808.08.0.846479857852.issue25981@psf.upfronthosting.co.za> |
| 2015年12月31日 03:00:07 | serhiy.storchaka | link | issue25981 messages |
| 2015年12月31日 03:00:07 | serhiy.storchaka | create |
|