Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #108504
| From | Dennis Lee Bieber <wlfraed@ix.netcom.com> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: TypeError: unorderable types: function() < int() |
| Date | 2016-05-10 19:57 -0400 |
| Organization | IISS Elusive Unicorn |
| Message-ID | <mailman.582.1462924638.32212.python-list@python.org> (permalink) |
| References | <1fc32599-0264-460c-8178-057558d19be5@googlegroups.com> <d2i3jbdr1j3uihacv9m5boo5f161f8qnh4@4ax.com> <CAPTjJmpr5ExWoS1j9bj0ZNqPn6AsYWGVzEeBnn_6dzZoFyx+Qg@mail.gmail.com> <71t4jbdm7iscoe85ea92bi2nn92bicpp75@4ax.com> |
On Tue, 10 May 2016 22:31:00 +1000, Chris Angelico <rosuav@gmail.com>
declaimed the following:
>On Tue, May 10, 2016 at 10:19 PM, Dennis Lee Bieber
><wlfraed@ix.netcom.com> wrote:
>> You invoke strftime() [in default: use current time mode], but pass it
>> a format that is not defined in the documentation (or wasn't in Python 2.7
>> which I'm still running). #2
>> %s (lowercase) formats the seconds field of the time of day. And worst,
>> since you don't return the result, it just gets thrown away. #3
>>
>
>Sorry to nitpick, but this isn't the case. time.strftime("%S") is what
>you're talking about (getting the "seconds since beginning of current
>minute"). There is a "%s" format string, but it's not supported on all
>platforms; it actually would be more useful here, as it represents the
>time as seconds since 1970 (aka "Unix time").
>
Interesting -- I had the help page open at the time looking for a cap-S
format...
Maybe not sorted order?
OKAY, I was wrong on that one -- I'll blame the use of an old
prescription for my glasses in the morning... THIS time I can make out that
it IS a capital S. (The display font in the help viewer may have
contributed -- the % appears taller than the S)
--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
TypeError: unorderable types: function() < int() George Molsom <georgieelize00@gmail.com> - 2016-05-10 02:01 -0700
Re: TypeError: unorderable types: function() < int() Ben Finney <ben+python@benfinney.id.au> - 2016-05-10 19:16 +1000
Re: TypeError: unorderable types: function() < int() Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2016-05-10 08:19 -0400
Re: TypeError: unorderable types: function() < int() Chris Angelico <rosuav@gmail.com> - 2016-05-10 22:31 +1000
Re: TypeError: unorderable types: function() < int() Steven D'Aprano <steve@pearwood.info> - 2016-05-10 23:40 +1000
Re: TypeError: unorderable types: function() < int() Chris Angelico <rosuav@gmail.com> - 2016-05-10 23:47 +1000
Re: TypeError: unorderable types: function() < int() Steven D'Aprano <steve@pearwood.info> - 2016-05-10 23:55 +1000
Re: TypeError: unorderable types: function() < int() Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2016-05-10 19:57 -0400
csiph-web