New submission from Xiang Gao <qasdfgtyu...@gmail.com>:
Related: https://bugs.python.org/issue1820 On issue 1820, a bunch of improvements was made on PyStructSequence to make it behave like a namedtuple. These improvements are not ported to Python 2, which makes it a trouble to write python 2-3 compatible code. See also: https://github.com/pytorch/pytorch/pull/15429#discussion_r253205020 ---------- components: Interpreter Core messages: 334946 nosy: Xiang Gao priority: normal severity: normal status: open title: [2.7] PyStructSequence objects not behaving like nametuple type: behavior versions: Python 2.7 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue35914> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com