String functions deprication

Tim Peters tim.peters at gmail.com
Tue Aug 16 12:54:28 EDT 2005


[steve morin]
> http://www.python.org/doc/2.4.1/lib/node110.html
> 
> These methods are being deprecated.  What are they being replaced
> with?  Does anyone know?

As it says at the top of that page,

    The following list of functions are also defined as methods of string and
    Unicode objects; see ``String Methods'' (section 2.3.6) for more
    information on those. You should consider these functions as deprecated,
    although they will not be removed until Python 3.0.

The methods of string and Unicode objects are not deprecated.  It's
just the redundant _functions_ in the string module that are
deprecated.

Historically, the functions in the string module existed long before
strings and Unicode objects had any methods.  Now that string and
Unicode objects do have methods, the functions in the string module
are no longer needed.



More information about the Python-list mailing list