Mirko Vogt added the comment:

I got that - so marking utcnow() as deprecated seems like a good idea.
But it's not just about utcnow() but also now().

now() also doesn't return any timezone stated by default - which I would still 
consider as a bug. However making now() require a TZ being specified would 
probably also break a lot of code. But then, using function called isoformat() 
- on whatever object, naive or not - I'd expect a timezone being specified - 
since that's what I finally think the ISO-standard actually says.

I see that my initial proposal doesn't work out, but I'm still not happy with 
the current situation I'm however also not sure how to change properly without 
breaking existing code using those functions.

----------

_______________________________________
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