Message362410
In https://docs.python.org/3/library/calendar.html#calendar.LocaleTextCalendar I read "If this locale includes an encoding all strings containing month and weekday names will be returned as unicode."
`unicode` here is a mention of the `unicode` type from Python 2 which does no longer exists, so the whole sentence can just be removed.
It happen also in the next paragraph, and twice in Lib/calendar.py.
In Python 2:
>>> print type(calendar.LocaleTextCalendar(locale="C").formatmonth(2020, 1))
<type 'str'>
>>> print type(calendar.LocaleTextCalendar(locale="en_US.UTF8").formatmonth(2020, 1))
<type 'unicode'>
In Python 3:
>>> print(type(calendar.LocaleTextCalendar(locale="C").formatmonth(2020, 1)))
<class 'str'>
>>> print(type(calendar.LocaleTextCalendar(locale="en_US.UTF8").formatmonth(2020, 1)))
<class 'str'> |
|
Date |
User |
Action |
Args |
2020-02-21 15:58:28 | mdk | set | recipients:
+ mdk, docs@python |
2020-02-21 15:58:28 | mdk | set | messageid: <1582300708.21.0.335550003251.issue39710@roundup.psfhosted.org> |
2020-02-21 15:58:28 | mdk | link | issue39710 messages |
2020-02-21 15:58:28 | mdk | create | |
|