diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2002-05-31 19:58:02 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2002-05-31 19:58:02 (GMT) |
commit | 32a7e7f6b65bd64f28daccaf05e906f93f2ef77e (patch) | |
tree | 1d944c019e0ff8ea1eed8d98041a0d10f6488bb8 /Misc | |
parent | 9b414ac93eb485a3123cf4dc33a253834c5d5e21 (diff) | |
download | cpython-32a7e7f6b65bd64f28daccaf05e906f93f2ef77e.zip cpython-32a7e7f6b65bd64f28daccaf05e906f93f2ef77e.tar.gz cpython-32a7e7f6b65bd64f28daccaf05e906f93f2ef77e.tar.bz2 |
Change name from string to basestring
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -12,10 +12,10 @@ Core and builtins deprecations, use -Walways::PendingDeprecationWarning:: as a command line option or warnings.filterwarnings() in code. -- A new type object, 'string', is added. This is a common base type +- A new type object, 'basestring', is added. This is a common base type for 'str' and 'unicode', and can be used instead of types.StringTypes, e.g. to test whether something is "a string": - isinstance(x, string) is True for Unicode and 8-bit strings. This + isinstance(x, basestring) is True for Unicode and 8-bit strings. This is an abstract base class and cannot be instantiated directly. - Deprecated features of xrange objects have been removed as |