Message377284
[Dong-hee Na]
> However, since the type is the structsequence the
> change can cause the ValueError: too many values
> to unpack when the variable is used as a tuple
Structseq also allows named fields that aren't part of the tuple. That is why I suggested, "consider adding new non-sequence fields ..."
For example, the Posix stat result struct seq has optional fields (
st_blksize, st_blocks, st_rdev, and st_flags) that are available as attributes only. |
|
Date |
User |
Action |
Args |
2020-09-21 21:04:37 | rhettinger | set | recipients:
+ rhettinger, tim.peters, mark.dickinson, corona10 |
2020-09-21 21:04:37 | rhettinger | set | messageid: <1600722277.33.0.770059759774.issue41823@roundup.psfhosted.org> |
2020-09-21 21:04:37 | rhettinger | link | issue41823 messages |
2020-09-21 21:04:37 | rhettinger | create | |
|