Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Dennis Lee Bieber Newsgroups: comp.lang.python Subject: Re: TypeError: unorderable types: function() < int() Date: Tue, 10 May 2016 19:57:08 -0400 Organization: IISS Elusive Unicorn Lines: 31 Message-ID: References: <1fc32599-0264-460c-8178-057558d19be5@googlegroups.com> <71t4jbdm7iscoe85ea92bi2nn92bicpp75@4ax.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de yzNhDxgzz3D9CI5umVJpeQAvkrDVgoOj8uMyXCEriE8Q== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; '"%s"': 0.09; '(aka': 0.09; 'default:': 0.09; 'message-id:@4ax.com': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:()': 0.09; 'thrown': 0.09; 'python': 0.10; '2.7': 0.13; '"seconds': 0.16; '2016': 0.16; '>on': 0.16; 'blame': 0.16; 'glasses': 0.16; 'order?': 0.16; 'received:80.91.229.3': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; 'case.': 0.18; 'result,': 0.18; 'string,': 0.18; 'url:home': 0.18; 'contributed': 0.20; '(the': 0.22; 'pass': 0.22; 'appears': 0.23; 'defined': 0.23; '(or': 0.23; 'represents': 0.23; 'header:X-Complaints-To:1': 0.26; 'chris': 0.26; 'supported': 0.27; 'away.': 0.29; 'invoke': 0.29; "i'm": 0.30; 'seconds': 0.31; 'maybe': 0.33; 'useful': 0.33; 'open': 0.33; "i'll": 0.33; 'tue,': 0.34; 'gets': 0.35; 'formats': 0.35; "isn't": 0.35; 'but': 0.36; 'there': 0.36; 'beginning': 0.36; "wasn't": 0.36; 'to:addr:python- list': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'display': 0.37; 'received:org': 0.37; 'charset:us-ascii': 0.37; 'wrong': 0.38; 'format': 0.39; 'to:addr:python.org': 0.40; 'still': 0.40; 'field': 0.60; 'more': 0.63; 'day.': 0.63; 'talking': 0.67; 'capital': 0.72; '+1000,': 0.84; '1970': 0.91; 'dennis': 0.91; 'received:108': 0.93 X-Injected-Via-Gmane: http://gmane.org/ X-Gmane-NNTP-Posting-Host: adsl-108-73-117-122.dsl.klmzmi.sbcglobal.net X-Newsreader: Forte Agent 6.00/32.1186 X-No-Archive: YES X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: <71t4jbdm7iscoe85ea92bi2nn92bicpp75@4ax.com> X-Mailman-Original-References: <1fc32599-0264-460c-8178-057558d19be5@googlegroups.com> Xref: csiph.com comp.lang.python:108504 On Tue, 10 May 2016 22:31:00 +1000, Chris Angelico declaimed the following: >On Tue, May 10, 2016 at 10:19 PM, Dennis Lee Bieber > 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/