[New-bugs-announce] [issue35914] [2.7] PyStructSequence objects not behaving like nametuple

Xiang Gao report at bugs.python.org
Wed Feb 6 10:54:42 EST 2019


New submission from Xiang Gao <qasdfgtyuiop at 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 <report at bugs.python.org>
<https://bugs.python.org/issue35914>
_______________________________________


More information about the New-bugs-announce mailing list