Add removal of basestring.

This commit is contained in:
Guido van Rossum 2007-10-16 16:58:38 +00:00
parent e2904eebe8
commit 71ead7f575
1 changed files with 7 additions and 0 deletions

View File

@ -282,6 +282,13 @@ e.g. to UTF-8, or even make it impossible to access the data as a
contiguous array of bytes at all. Therefore, the PEP 3118 buffer API
will be removed from the str type.
The ``basestring`` Type
-----------------------
The ``basestring`` type will be removed from the language. Code that
used to say ``isinstance(x, basestring)`` should be changed to use
``isinstance(x, str)`` instead.
Pickling
--------