Mailing List Archive

python/nondist/peps pep-0290.txt,1.1,1.2
Update of /cvsroot/python/python/nondist/peps
In directory usw-pr-cvs1:/tmp/cvs-serv5793

Modified Files:
pep-0290.txt
Log Message:
Version correction spotted by Zoltan Felleg

Index: pep-0290.txt
===================================================================
RCS file: /cvsroot/python/python/nondist/peps/pep-0290.txt,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** pep-0290.txt 17 Jun 2002 12:00:22 -0000 1.1
--- pep-0290.txt 30 Jun 2002 23:02:23 -0000 1.2
***************
*** 123,127 ****
type(s, types.StringTypes --> isinstance(s, basestring)
Idea: The types module will likely to be deprecated in the future.
! Version: 2.2 or greater
Benefits: May be slightly faster, avoid a deprecated feature.
Locating: grep types *.py | grep import
--- 123,127 ----
type(s, types.StringTypes --> isinstance(s, basestring)
Idea: The types module will likely to be deprecated in the future.
! Version: 2.3 or greater (basestring introduced in Py2.3)
Benefits: May be slightly faster, avoid a deprecated feature.
Locating: grep types *.py | grep import
***************
*** 145,148 ****
--- 145,149 ----
allows an "except Exception" clause to catch all exceptions.
Locating: Use PyChecker
+

Pattern: "foobar"[:3] == "foo" -> "foobar".startswith("foo")