[issue9430] Document str() and repr() of timedelta.

2010-07-31 Thread Georg Brandl
Georg Brandl added the comment: Committed in r83341. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue9430] Document str() and repr() of timedelta.

2010-07-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: Looks good to me. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue9430] Document str() and repr() of timedelta.

2010-07-31 Thread Eric Smith
Eric Smith added the comment: I think it would be clearer if the footnote said something like "Negative 1 day plus 19 hours is equivalent to the timedelta argument of -5 hours)". If I hadn't been following the discussion on #python-dev the point of this doc change would have been lost on me w

[issue9430] Document str() and repr() of timedelta.

2010-07-30 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: First revision: issue9430.diff -- Added file: http://bugs.python.org/file18278/issue9430.diff ___ Python tracker ___ _

[issue9430] Document str() and repr() of timedelta.

2010-07-30 Thread Ezio Melotti
Ezio Melotti added the comment: Adding a footnote with an example sounds like a good idea. There's an odd number of square brackets in the str(t) description. -- nosy: +ezio.melotti stage: -> patch review ___ Python tracker

[issue9430] Document str() and repr() of timedelta.

2010-07-30 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue9430] Document str() and repr() of timedelta.

2010-07-30 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : Attaching a tentative patch. I think it is better to document these as operations rather than special methods. It may need to be clarified that "-2 days, 0:00:22" is timedelta(-2, 22) rather than -timedelta(2, 22), but I cannot come up with anything