Create new "Atomic Types" section and add mention of removal of basestring.find
and friends.
This commit is contained in:
parent
cb0f99bfd6
commit
5126f6dbf7
16
pep-3000.txt
16
pep-3000.txt
|
@ -73,8 +73,8 @@ To be removed:
|
|||
* Unbound methods [7]_
|
||||
|
||||
|
||||
Built-ins
|
||||
=========
|
||||
Built-in Namespace
|
||||
==================
|
||||
|
||||
* Make built-ins return an iterator where appropriate (e.g. ``range()``,
|
||||
``zip()``, etc.)
|
||||
|
@ -100,6 +100,15 @@ To be removed:
|
|||
* ``xrange()``: use ``range()`` instead [1]_
|
||||
|
||||
|
||||
Atomic Types
|
||||
============
|
||||
|
||||
To be removed:
|
||||
|
||||
* ``basestring.find()`` and ``basestring.rfind()``; use ``basestring.index()``
|
||||
or ``basestring.rindex()`` in a try/except block [15]_
|
||||
|
||||
|
||||
Standard library
|
||||
================
|
||||
|
||||
|
@ -157,6 +166,9 @@ References
|
|||
.. [14] python-dev email ("PEP 8: exception style")
|
||||
http://mail.python.org/pipermail/python-dev/2005-August/055190.html
|
||||
|
||||
.. [15] python-dev email (Remove str.find in 3.0?)
|
||||
http://mail.python.org/pipermail/python-dev/2005-August/055705.html
|
||||
|
||||
|
||||
Copyright
|
||||
=========
|
||||
|
|
Loading…
Reference in New Issue