From: Christian Heimes Date: Fri, 25 Jan 2008 11:02:28 +0000 (+0000) Subject: Document that basestring has been replaced by str. Issue #1931. X-Git-Tag: v3.0a3~168 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f534f7b74a4607115bf3de266a5cb13cc47977fd;p=thirdparty%2FPython%2Fcpython.git Document that basestring has been replaced by str. Issue #1931. --- diff --git a/Doc/whatsnew/3.0.rst b/Doc/whatsnew/3.0.rst index d24416fa92e6..49883b4ed3d1 100644 --- a/Doc/whatsnew/3.0.rst +++ b/Doc/whatsnew/3.0.rst @@ -154,6 +154,9 @@ Strings and Bytes * There is only one string type; its name is ``str`` but its behavior 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 (and encoded text, which is treated as binary data until you decide to decode it). The ``str`` and ``bytes`` types cannot be mixed; you