Skip to content

Commit eec14f4

Browse files
[3.11] gh-92417: stdtypes docs: delete discussion of Python 2 differences (GH-92423) (GH-92472)
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 8efda1e) Co-authored-by: Alex Waygood <[email protected]> Automerge-Triggered-By: GH:serhiy-storchaka
1 parent f71b305 commit eec14f4

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

Doc/library/stdtypes.rst

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2573,16 +2573,6 @@ The representation of bytes objects uses the literal format (``b'...'``)
25732573
since it is often more useful than e.g. ``bytes([46, 46, 46])``. You can
25742574
always convert a bytes object into a list of integers using ``list(b)``.
25752575

2576-
.. note::
2577-
For Python 2.x users: In the Python 2.x series, a variety of implicit
2578-
conversions between 8-bit strings (the closest thing 2.x offers to a
2579-
built-in binary data type) and Unicode strings were permitted. This was a
2580-
backwards compatibility workaround to account for the fact that Python
2581-
originally only supported 8-bit text, and Unicode text was a later
2582-
addition. In Python 3.x, those implicit conversions are gone - conversions
2583-
between 8-bit binary data and Unicode text must be explicit, and bytes and
2584-
string objects will always compare unequal.
2585-
25862576

25872577
.. _typebytearray:
25882578

0 commit comments

Comments
 (0)