OK, I guess we can change stdlib datetime.timezone.utc's str() to 'UTC'.
Make sure to update both the C and the Python version, and the tests, and
the docs. It's going to have to go into 3.6.



On Wed, Aug 26, 2015 at 9:38 AM, Alexander Belopolsky <
[email protected]> wrote:

>
> On Wed, Aug 26, 2015 at 12:30 PM, Guido van Rossum <[email protected]>
> wrote:
>
>> Why is this needed? When would a real app use %Z%z?
>
>
> Given that a bug report [1] exists, someone was tripped by the current
> behavior.  It is my understanding that "UTC" is one of the few timezone
> abbreviations that we recognize in strptime and the users expect strptime
> to be able to parse whatever strftime produces.
>
>
> [1]: http://bugs.python.org/issue22241
>



-- 
--Guido van Rossum (python.org/~guido)
_______________________________________________
Datetime-SIG mailing list
[email protected]
https://mail.python.org/mailman/listinfo/datetime-sig
The PSF Code of Conduct applies to this mailing list: 
https://www.python.org/psf/codeofconduct/

Reply via email to