Alexander Belopolsky added the comment:

What is your specific proposal?

As I explained, we cannot assume that naive timezone instances are in UTC 
because while sometimes they are (as in datetime.utcnow()), more often they are 
not (as in datetime.now()).  So changing dt.isoformat() when dt is naive is 
wrong.

Another alternative would be to return aware instances from utcnow(), but that 
would break a lot of code.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue23332>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to