Message221902
Andrew, thanks for signing the agreement!
[Sunny]
> Is this what you expect?
I find the initialization in os.stat_result somewhat strange. Also,
a certain use of unnamed fields that worked in 2.5 is now broken,
which we should sort out before proceeding any further:
Apply structseq_repr_issue.diff, then:
>>> from _testcapi import mk_structseq
>>> s = mk_structseq("unnamed_end")
>>> s[3]
3
>>> tuple(s)
(0, 1, 2, 3, 4)
>>> s
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
SystemError: In structseq_repr(), member 3 name is NULL for type _testcapi.struct_unnamed_end
Perhaps we should just add the missing field names, like namedtuple
does with rename=True:
(a=1, b=2, c=3, _4=4, _5=5)
In any case, in 2.5 the entire tuple was printed as the repr,
regardless of unnamed fields. |
|
Date |
User |
Action |
Args |
2014-06-29 21:13:18 | skrah | set | recipients:
+ skrah, lemburg, georg.brandl, rhettinger, terry.reedy, amaury.forgeotdarc, gjb1002, belopolsky, salty-horse, vstinner, jackdied, eric.smith, giampaolo.rodola, christian.heimes, benjamin.peterson, adlaiff6, eric.araujo, Arfrever, santoso.wijaya, ethan.furman, eric.snow, sunfinite, abarnert |
2014-06-29 21:13:18 | skrah | set | messageid: <1404076398.23.0.441761432108.issue1820@psf.upfronthosting.co.za> |
2014-06-29 21:13:18 | skrah | link | issue1820 messages |
2014-06-29 21:13:17 | skrah | create | |
|