Raymond Hettinger <raymond.hettin...@gmail.com> added the comment:
[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. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue41823> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com