[issue11698] Improve repr for structseq objects to show named, but unindexed fields

2020-10-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Other problem is that the repr looks like an evaluable expression, but evaluating it will always produce error. >>> st = os.stat('/dev/null') >>> st os.stat_result(st_mode=8630, st_ino=6, st_dev=6, st_nlink=1, st_uid=0, st_gid=0, st_size=0,

[issue11698] Improve repr for structseq objects to show named, but unindexed fields

2019-05-06 Thread MICHAEL BLAHAY
MICHAEL BLAHAY added the comment: I have been advised to avoid enhancements like this one, so I am setting this back down. Also, this should be relabeled as easy(c). -- ___ Python tracker

[issue11698] Improve repr for structseq objects to show named, but unindexed fields

2019-05-06 Thread MICHAEL BLAHAY
MICHAEL BLAHAY added the comment: I will work on this -- nosy: +MICHAEL BLAHAY ___ Python tracker ___ ___ Python-bugs-list mailing

[issue11698] Improve repr for structseq objects to show named, but unindexed fields

2018-01-29 Thread Raymond Hettinger
Change by Raymond Hettinger : -- versions: +Python 3.8 -Python 3.7 ___ Python tracker ___

[issue11698] Improve repr for structseq objects to show named, but unindexed fields

2016-10-03 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___

[issue11698] Improve repr for structseq objects to show named, but unindexed fields

2016-10-03 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- stage: -> patch review versions: +Python 3.7 -Python 3.4 ___ Python tracker ___

[issue11698] Improve repr for structseq objects to show named, but unindexed fields

2015-01-21 Thread lilydjwg
Changes by lilydjwg lilyd...@gmail.com: -- nosy: +lilydjwg ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11698 ___ ___ Python-bugs-list mailing

[issue11698] Improve repr for structseq objects to show named, but unindexed fields

2014-08-01 Thread Mark Lawrence
Mark Lawrence added the comment: Could somebody pick this up please as it fixes #5907. -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11698 ___

[issue11698] Improve repr for structseq objects to show named, but unindexed fields

2013-11-07 Thread Sunny K
Changes by Sunny K sunfin...@gmail.com: Removed file: http://bugs.python.org/file32265/structseq.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11698 ___

[issue11698] Improve repr for structseq objects to show named, but unindexed fields

2013-11-07 Thread Sunny K
Sunny K added the comment: The previous patch had a wrong mapping between keys and values. The current implementation of repr means that duplicated keys will be present when invisible fields are included. See points 2 and 3 in http://bugs.python.org/issue1820#msg202330 for more explanation. I

[issue11698] Improve repr for structseq objects to show named, but unindexed fields

2013-11-07 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: IMHO '*' could be used as a separator, since relation between indexable fields and named, unindexable fields is similar to relation between positional-or-keyword parameters and keyword-only parameters. $./python -c import os;

[issue11698] Improve repr for structseq objects to show named, but unindexed fields

2013-10-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: Hmm, does anyone have an opinion for or against the proposed representation in Sunny's patch? Sunny, if you haven't done so, could you sign a contributor's agreement? http://www.python.org/psf/contrib/ Thanks! --

[issue11698] Improve repr for structseq objects to show named, but unindexed fields

2013-10-20 Thread Sunny K
Sunny K added the comment: Added patch for 3.4. The patch demarcates the output by adding a {...} around the dictionary portion. Please let me know if this is the right format or if not required at all. It is a simple change. -- nosy: +sunfinite Added file:

[issue11698] Improve repr for structseq objects to show named, but unindexed fields

2013-10-20 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: - pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11698 ___ ___

[issue11698] Improve repr for structseq objects to show named, but unindexed fields

2013-07-12 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- versions: +Python 3.4 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11698 ___

[issue11698] Improve repr for structseq objects to show named, but unindexed fields

2013-06-25 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +eric.snow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11698 ___ ___ Python-bugs-list

[issue11698] Improve repr for structseq objects to show named, but unindexed fields

2013-05-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thanks for the patch. (Yes, I'm looking at this a bit late :-)) First, there seems to be a problem with the repr() of of.stat() results: ./python -c import os; print(os.stat('LICENSE')) posix.stat_result(st_mode=33204, st_ino=6553619, st_dev=2053, st_nlink=1,

[issue11698] Improve repr for structseq objects to show named, but unindexed fields

2013-04-19 Thread Phil Connell
Changes by Phil Connell pconn...@gmail.com: -- nosy: +pconnell ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11698 ___ ___ Python-bugs-list

[issue11698] Improve repr for structseq objects to show named, but unindexed fields

2012-08-23 Thread moijes12
Changes by moijes12 moije...@gmail.com: -- nosy: +moijes12 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11698 ___ ___ Python-bugs-list mailing

[issue11698] Improve repr for structseq objects to show named, but unindexed fields

2012-08-23 Thread moijes12
Changes by moijes12 moije...@gmail.com: -- nosy: -moijes12 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11698 ___ ___ Python-bugs-list mailing

[issue11698] Improve repr for structseq objects to show named, but unindexed fields

2012-07-16 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11698 ___

[issue11698] Improve repr for structseq objects to show named, but unindexed fields

2012-07-15 Thread David Lam
David Lam d...@dlam.me added the comment: hi hi, found this bug after clicking the Easy issues link i basically just took Ray's hint to look at the __reduce__ method, and applied it to the __repr__ method in this patch also updated is the test_repr() unittest -- keywords: +patch

[issue11698] Improve repr for structseq objects to show named, but unindexed fields

2012-03-09 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: +1. Also, the repr() should show the float values of st_mtime and friends, rather than truncated integers. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11698

[issue11698] Improve repr for structseq objects to show named, but unindexed fields

2012-02-19 Thread Berker Peksag
Berker Peksag berker.pek...@gmail.com added the comment: I'd like to work on this issue. I found the Objects/structseq.c [1] file. Am I on the right path? Thanks! [1] http://hg.python.org/cpython/file/5b4b70bd2b6f/Objects/structseq.c#l157 -- nosy: +berker.peksag

[issue11698] Improve repr for structseq objects to show named, but unindexed fields

2012-02-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: You are! See the devguide for more setup guidelines. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11698 ___

[issue11698] Improve repr for structseq objects to show named, but unindexed fields

2012-02-19 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11698 ___ ___

[issue11698] Improve repr for structseq objects to show named, but unindexed fields

2011-07-13 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11698 ___ ___ Python-bugs-list

[issue11698] Improve repr for structseq objects to show named, but unindexed fields

2011-03-27 Thread Raymond Hettinger
New submission from Raymond Hettinger raymond.hettin...@gmail.com: The current __repr__ for structseq only shows the name/value pairs for the positional part and it ignores the other named fields. For example, os.stat(somefile) returns: posix.stat_result(st_mode=33277, st_ino=8468407,