This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mdk
Recipients docs@python, mdk
Date 2020-02-21.15:58:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1582300708.21.0.335550003251.issue39710@roundup.psfhosted.org>
In-reply-to
Content
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'>
History
Date User Action Args
2020-02-21 15:58:28mdksetrecipients: + mdk, docs@python
2020-02-21 15:58:28mdksetmessageid: <1582300708.21.0.335550003251.issue39710@roundup.psfhosted.org>
2020-02-21 15:58:28mdklinkissue39710 messages
2020-02-21 15:58:28mdkcreate