diff options
author | Alex Waygood <Alex.Waygood@Gmail.com> | 2022-05-08 13:23:22 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-08 13:23:22 (GMT) |
commit | 8efda1e7c6343b1671d93837bf2c146e4cf77bbf (patch) | |
tree | 4b234d89596d12397d5f71a9961719f18836e21f /Doc/library/stdtypes.rst | |
parent | 4739997e141c4c84bd2241d4d887c3c658d92700 (diff) | |
download | cpython-8efda1e7c6343b1671d93837bf2c146e4cf77bbf.zip cpython-8efda1e7c6343b1671d93837bf2c146e4cf77bbf.tar.gz cpython-8efda1e7c6343b1671d93837bf2c146e4cf77bbf.tar.bz2 |
gh-92417: `stdtypes` docs: delete discussion of Python 2 differences (GH-92423)
Given that 2.7 has now been end-of-life for two and a half years,
I don't think we need such a detailed explanation here anymore of
the differences between Python 2 and Python 3.
Diffstat (limited to 'Doc/library/stdtypes.rst')
-rw-r--r-- | Doc/library/stdtypes.rst | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index 4444740..065afb8 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -2573,16 +2573,6 @@ The representation of bytes objects uses the literal format (``b'...'``) since it is often more useful than e.g. ``bytes([46, 46, 46])``. You can always convert a bytes object into a list of integers using ``list(b)``. -.. note:: - For Python 2.x users: In the Python 2.x series, a variety of implicit - conversions between 8-bit strings (the closest thing 2.x offers to a - built-in binary data type) and Unicode strings were permitted. This was a - backwards compatibility workaround to account for the fact that Python - originally only supported 8-bit text, and Unicode text was a later - addition. In Python 3.x, those implicit conversions are gone - conversions - between 8-bit binary data and Unicode text must be explicit, and bytes and - string objects will always compare unequal. - .. _typebytearray: |