summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-05-08 15:26:50 (GMT)
committerGitHub <noreply@github.com>2022-05-08 15:26:50 (GMT)
commit0cd0d6bf488662e24e1e4f3b4ffca3542382a47a (patch)
tree1f37c94b21995b45c1d0cc3f9fa2916c88196564 /Doc
parent731e844b1779e8251b2b4084275f5b166554fe8a (diff)
downloadcpython-0cd0d6bf488662e24e1e4f3b4ffca3542382a47a.zip
cpython-0cd0d6bf488662e24e1e4f3b4ffca3542382a47a.tar.gz
cpython-0cd0d6bf488662e24e1e4f3b4ffca3542382a47a.tar.bz2
[3.9] gh-92417: `stdtypes` docs: delete discussion of Python 2 differences (GH-92423) (GH-92474)
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. (cherry picked from commit 8efda1e7c6343b1671d93837bf2c146e4cf77bbf) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Automerge-Triggered-By: GH:serhiy-storchaka
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/stdtypes.rst10
1 files changed, 0 insertions, 10 deletions
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
index 1cba750..2892486 100644
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -2502,16 +2502,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: