Correct the intention for basestring.

This commit is contained in:
Guido van Rossum 2005-01-15 05:06:09 +00:00
parent c38198cfef
commit cb4b5a93b8
1 changed files with 4 additions and 4 deletions

View File

@ -65,10 +65,10 @@ Motivation
blessed by the BDFL (Benevolent Dictator for Life). The same can
be said for the alternative technique based on checking
'isinstance' (the built-in class "basestring" exists specifically
to let you use 'isinstance' to check if an object "is something
like a string"). Neither approach is easily and generally
extensible to other protocols, defined by applications and third
party frameworks, outside of the standard Python core.
to let you use 'isinstance' to check if an object "is a [built-in]
string"). Neither approach is easily and generally extensible to
other protocols, defined by applications and third party
frameworks, outside of the standard Python core.
Even more important than checking if an object already supports a
given protocol can be the task of obtaining a suitable adapter