This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients rhettinger
Date 2020-04-14.01:23:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1586827419.3.0.773379446138.issue40277@roundup.psfhosted.org>
In-reply-to
Content
Formerly, the accessor for named tuples were more informative:

    >>> class Pt(NamedTuple):
            x: int
            y: int

    >>> vars(Pt)['x']
    <property object at 0x10cc09a70>
    >>> vars(Pt)['x'].fget
    operator.itemgetter(0)

Currently, it is less informative:

    >>> vars(Pt)['x']
    <_collections._tuplegetter object at 0x1066a08e0>

The repr should be updated to show how the object could been created:

    >>> vars(Pt)['x']
    _tuplegetter(0, 'Alias for field number 0')
History
Date User Action Args
2020-04-14 01:23:39rhettingersetrecipients: + rhettinger
2020-04-14 01:23:39rhettingersetmessageid: <1586827419.3.0.773379446138.issue40277@roundup.psfhosted.org>
2020-04-14 01:23:39rhettingerlinkissue40277 messages
2020-04-14 01:23:39rhettingercreate