Skip to content

Commit 2aa22f7

Browse files
wjandreapganssle
andauthored
gh-99032: datetime docs: Encoding is no longer relevant (#93365)
This removes a section of the `strftime` and `strptime` documentation that refers to a bygone era when `strftime` would return an encoded byte string. --------- Co-authored-by: Paul Ganssle <1377457+pganssle@users.noreply.github.com>
1 parent 5b404d6 commit 2aa22f7

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Doc/library/datetime.rst

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2510,10 +2510,7 @@ Notes:
25102510
Because the format depends on the current locale, care should be taken when
25112511
making assumptions about the output value. Field orderings will vary (for
25122512
example, "month/day/year" versus "day/month/year"), and the output may
2513-
contain Unicode characters encoded using the locale's default encoding (for
2514-
example, if the current locale is ``ja_JP``, the default encoding could be
2515-
any one of ``eucJP``, ``SJIS``, or ``utf-8``; use :meth:`locale.getlocale`
2516-
to determine the current locale's encoding).
2513+
contain non-ASCII characters.
25172514

25182515
(2)
25192516
The :meth:`strptime` method can parse years in the full [1, 9999] range, but

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy