Author brett.cannon
Recipients ajaksu2, belopolsky, brett.cannon, doerwalter, eric.araujo, ggenellina, kawai, pitrou, rafe, vstinner
Date 2010-06-03.19:15:56
SpamBayes Score 0.00039222
Marked as misclassified No
Message-id <1275592558.56.0.269028568798.issue5094@psf.upfronthosting.co.za>
In-reply-to
Content
I don't think people would get confused as to what datetime.utc was, but as you pointed out, Alexander, the module seems to like class attributes so timezone.utc is fine.

As for the float/int argument, I personally am wary of it. Since the timedelta constructor accepts hours as a keyword argument, I don't see the benefit of having to support both timedeltas and int/floats. And I can see someone messing up and putting in a float that is not perfectly representable and getting upset at odd behavior. I say keep it simple and just accept timedeltas for now. If there really is demand for accepting integers in the constructor than it can be added without backwards-compatibility issues. Better to keep the API small and expand later than make it too big to start and being burdened with extraneous API stuff.
History
Date User Action Args
2010-06-03 19:15:58brett.cannonsetrecipients: + brett.cannon, doerwalter, belopolsky, ggenellina, pitrou, vstinner, ajaksu2, kawai, eric.araujo, rafe
2010-06-03 19:15:58brett.cannonsetmessageid: <1275592558.56.0.269028568798.issue5094@psf.upfronthosting.co.za>
2010-06-03 19:15:56brett.cannonlinkissue5094 messages
2010-06-03 19:15:56brett.cannoncreate