Re: [Tutor] %T as a strftime format identifier

2010-11-27 Thread python
32-bit Python 2.7 for Windows: >>> import time >>> time.strftime("%T") Traceback (most recent call last): File "", line 1, in time.strftime("%T") ValueError: Invalid format string Malcolm ___ Tutor maillist - Tutor@python.org To unsubscribe or

Re: [Tutor] %T as a strftime format identifier

2010-11-27 Thread Terry Carroll
On Sat, 27 Nov 2010, Steven D'Aprano wrote: [st...@sylar ~]$ python2.5 Python 2.5 (r25:51908, Nov 6 2007, 16:54:01) [GCC 4.1.2 20070925 (Red Hat 4.1.2-27)] on linux2 Type "help", "copyright", "credits" or "license" for more information. import time time.strftime("%T") '19:03:16' Interesting

Re: [Tutor] %T as a strftime format identifier

2010-11-27 Thread Steven D'Aprano
Terry Carroll wrote: My question: was %T ever a valid format specifier in Python? My best guess is that it was when Edna was written (the most current release is from 2006, and the docs say it needs at least Python 1.5.2, which gives you an example of its age). It seems odd that the format i

[Tutor] %T as a strftime format identifier

2010-11-26 Thread Terry Carroll
Was %T ever a valid format specifier for time.strftime in Python? I just installed a Python streaming MP3 server called Edna (http://edna.sourceforge.net/). It was an easy install except that I got a ValueError on one line, essentially for: time.strftime("%a, %d %b %Y %T GMT") After a few