[issue6280] calendar.timegm() belongs in time module, next to time.gmtime()

Alexander Belopolsky report at bugs.python.org
Mon Apr 26 20:00:11 CEST 2010


Alexander Belopolsky <alexander.belopolsky at gmail.com> added the comment:

Some more comments:

- Documentation needs a "versionadded" entry.

- A fate of calendar.timegm() needs to be decided.  If the decision is to deprecate it, deprecation warning need to be added to calendar module and docs updated accordingly.   Given that as implemented, time.timegm() is not a drop-in replacement for calendar.timegm(), deprecation may not be appropriate, it which case the difference between the two functions should probably be explained in the docs.

----------

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


More information about the Python-bugs-list mailing list