[issue5907] repr of time.struct_time type does not eval

2016-10-03 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- priority: low -> normal versions: +Python 3.7 -Python 3.3 ___ Python tracker ___

[issue5907] repr of time.struct_time type does not eval

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

[issue5907] repr of time.struct_time type does not eval

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

[issue5907] repr of time.struct_time type does not eval

2013-09-25 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/issue5907 ___

[issue5907] repr of time.struct_time type does not eval

2013-09-07 Thread R. David Murray
R. David Murray added the comment: It is very surprising that evaling the repr doesn't work, since struct_time is documented to have a named tuple interface, and evaling the repr for a namedtuple works. So hopefully fixing issue 1820 will also fix this. -- nosy: +r.david.murray

[issue5907] repr of time.struct_time type does not eval

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/issue5907 ___ ___ Python-bugs-list

[issue5907] repr of time.struct_time type does not eval

2011-04-08 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Or whether to change it at all. It's hard to imagine that applications may rely on that aspect of the behavior - they have to use eval, after all. I would like to see this fixed. When working in interactive session, I

[issue5907] repr of time.struct_time type does not eval

2011-04-08 Thread Santoso Wijaya
Santoso Wijaya santoso.wij...@gmail.com added the comment: I have a feeling that a successful resolution of issue 1820 will make things simpler for this one, since time.struct_time uses structseq. -- nosy: +santa4nt ___ Python tracker

[issue5907] repr of time.struct_time type does not eval

2011-04-08 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc amaur...@gmail.com: -- dependencies: +Enhance Object/structseq.c to match namedtuple and tuple api ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5907 ___

[issue5907] repr of time.struct_time type does not eval

2011-04-08 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: Also see issue11698 -- assignee: - rhettinger nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5907 ___

[issue5907] repr of time.struct_time type does not eval

2010-07-07 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- dependencies: +String interpolation doesn't work with sys.version_info ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5907

[issue5907] repr of time.struct_time type does not eval

2010-06-12 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- assignee: - belopolsky nosy: +belopolsky versions: +Python 3.2 -Python 2.6, Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5907

[issue5907] repr of time.struct_time type does not eval

2009-05-03 Thread John Morton
John Morton j...@angrymonkey.net.nz added the comment: While it's true that repr() methods cannot generally be expected to eval back into an object of the same type, the old repr behaviour of the struct_time object did effectively do so. Admittedly it was a kludge due to the time module

[issue5907] repr of time.struct_time type does not eval

2009-05-03 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: The question remains, how to fix it? Or whether to change it at all. It's hard to imagine that applications may rely on that aspect of the behavior - they have to use eval, after all. -- ___

[issue5907] repr of time.struct_time type does not eval

2009-05-02 Thread John Morton
New submission from John Morton j...@angrymonkey.net.nz: The output of repr on an object of type time.struct_time has changed from 2.5 to 2.6, and can no longer be read in with an eval. 2.5 behaviour: Python 2.5.4 (r254:67916, Apr 4 2009, 17:55:16) [GCC 4.3.3] on linux2 Type help, copyright,

[issue5907] repr of time.struct_time type does not eval

2009-05-02 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Notice that this is no bug: there is no guarantee that repr() can eval(). For some types it does, for others, it doesn't. -- nosy: +loewis type: behavior - feature request ___ Python tracker

[issue5907] repr of time.struct_time type does not eval

2009-05-02 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Also, the 2.5 behavior was not up to spec either: after eval() you get a simple tuple, while the object before was a time.struct_time object. (True, you can pass these tuples to the time functions, but an eval()able repr() should reproduce the