[issue5094] datetime lacks concrete tzinfo impl. for UTC

Alexander Belopolsky report at bugs.python.org
Fri Jun 11 20:48:50 CEST 2010


Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:

I am attaching a new patch, issue5094e.diff which addresses most of Mark's comments.  I left out repr() because two opinions were voiced on IRC with respect to datetime. prefix.  I would like to give it some more thought even though I am leaning towards compatibility with existing reprs.

I did not make td argument optional and did not allow timezone o be subclassed because these seem to be mutually exclusive options.  (If td is optional in base class, it must be optional in subclasses per Liskov's principle severely limiting utility of subclasses.)  Let's address this separately.

----------
Added file: http://bugs.python.org/file17631/issue5094e.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5094>
_______________________________________


More information about the Python-bugs-list mailing list