[Python-checkins] python/nondist/peps pep-0246.txt,1.7,1.8
gvanrossum at users.sourceforge.net
gvanrossum at users.sourceforge.net
Sat Jan 15 06:06:12 CET 2005
Update of /cvsroot/python/python/nondist/peps
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2813
Modified Files:
pep-0246.txt
Log Message:
Correct the intention for basestring.
Index: pep-0246.txt
===================================================================
RCS file: /cvsroot/python/python/nondist/peps/pep-0246.txt,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- pep-0246.txt 14 Jan 2005 19:01:09 -0000 1.7
+++ pep-0246.txt 15 Jan 2005 05:06:09 -0000 1.8
@@ -65,10 +65,10 @@
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
More information about the Python-checkins
mailing list