Movatterモバイル変換


[0]ホーム

URL:


homepage

Message152556

This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

AuthorLakin.Wecker
RecipientsLakin.Wecker
Date2012-02-03.20:43:16
SpamBayes Score1.9826318e-06
Marked as misclassifiedNo
Message-id<1328301796.8.0.996607861145.issue13936@psf.upfronthosting.co.za>
In-reply-to
Content
midnight is represented by datetime.time(0,0,0).  However, this time (unlike all other valid times, including datetime.time(0,0,1)) evalutes to false in if conditions:import datetimeif datetime.time(0,0,0):    print "datetime.time(0,0,0) is not a bug!"else:    print "datetime.time(0,0,0) is a bug!"if datetime.time(0,0,1):    print "datetime.time(0,0,1) is not a bug!"else:    print "datetime.time(0,0,1) is a bug!"
History
DateUserActionArgs
2012-02-03 20:43:16Lakin.Weckersetrecipients: +Lakin.Wecker
2012-02-03 20:43:16Lakin.Weckersetmessageid: <1328301796.8.0.996607861145.issue13936@psf.upfronthosting.co.za>
2012-02-03 20:43:16Lakin.Weckerlinkissue13936 messages
2012-02-03 20:43:16Lakin.Weckercreate
Supported byThe Python Software Foundation,
Powered byRoundup
Copyright © 1990-2022,Python Software Foundation
Legal Statements

[8]ページ先頭

©2009-2026 Movatter.jp