mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Document that basestring has been replaced by str. Issue #1931.
This commit is contained in:
parent
b267384098
commit
f534f7b74a
1 changed files with 3 additions and 0 deletions
|
@ -154,6 +154,9 @@ Strings and Bytes
|
||||||
* There is only one string type; its name is ``str`` but its behavior
|
* There is only one string type; its name is ``str`` but its behavior
|
||||||
and implementation are more like ``unicode`` in 2.x.
|
and implementation are more like ``unicode`` in 2.x.
|
||||||
|
|
||||||
|
* The ``basestring`` superclass has been removed. The ``2to3`` tool
|
||||||
|
replaces every occurence of ``basestring`` with ``str``.
|
||||||
|
|
||||||
* PEP 3137: There is a new type, ``bytes``, to represent binary data
|
* PEP 3137: There is a new type, ``bytes``, to represent binary data
|
||||||
(and encoded text, which is treated as binary data until you decide
|
(and encoded text, which is treated as binary data until you decide
|
||||||
to decode it). The ``str`` and ``bytes`` types cannot be mixed; you
|
to decode it). The ``str`` and ``bytes`` types cannot be mixed; you
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue