Skip to content

Commit 8c42fef

Browse files
[3.10] gh-92417: stdtypes docs: delete discussion of Python 2 differences (GH-92423) (GH-92473)
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 80ce701 commit 8c42fef

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

Doc/library/stdtypes.rst

-10
Original file line numberDiff line numberDiff line change
@@ -2535,16 +2535,6 @@ The representation of bytes objects uses the literal format (``b'...'``)
25352535
since it is often more useful than e.g. ``bytes([46, 46, 46])``. You can
25362536
always convert a bytes object into a list of integers using ``list(b)``.
25372537

2538-
.. note::
2539-
For Python 2.x users: In the Python 2.x series, a variety of implicit
2540-
conversions between 8-bit strings (the closest thing 2.x offers to a
2541-
built-in binary data type) and Unicode strings were permitted. This was a
2542-
backwards compatibility workaround to account for the fact that Python
2543-
originally only supported 8-bit text, and Unicode text was a later
2544-
addition. In Python 3.x, those implicit conversions are gone - conversions
2545-
between 8-bit binary data and Unicode text must be explicit, and bytes and
2546-
string objects will always compare unequal.
2547-
25482538

25492539
.. _typebytearray:
25502540

0 commit comments

Comments
 (0)