Correct the intention for basestring.
This commit is contained in:
parent
c38198cfef
commit
cb4b5a93b8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue