[issue40277] Improve repr for _tuplegetter objects

2020-04-14 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for the PR :-) -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue40277] Improve repr for _tuplegetter objects

2020-04-14 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset a86b522d8f1c8b9c26b5550de221d2227158cf4d by Ammar Askar in branch 'master': bpo-40277: Add a repr() to namedtuple's _tuplegetter to aid with introspection (GH-19537) https://github.com/python/cpython/commit/a86b522d8f1c8b9c26b5550de221d22271

[issue40277] Improve repr for _tuplegetter objects

2020-04-14 Thread Ammar Askar
Change by Ammar Askar : -- keywords: +patch nosy: +ammar2 nosy_count: 1.0 -> 2.0 pull_requests: +18885 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19537 ___ Python tracker ___

[issue40277] Improve repr for _tuplegetter objects

2020-04-13 Thread Raymond Hettinger
New submission from Raymond Hettinger : Formerly, the accessor for named tuples were more informative: >>> class Pt(NamedTuple): x: int y: int >>> vars(Pt)['x'] >>> vars(Pt)['x'].fget operator.itemgetter(0) Currently, it is less informative: >