Documentation Question About Depricated String Functions

H

Hitesh

Hi,

In python doc -- 4.1.4 Deprecated string functions -- I read that "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
functions defined in this module are: " and there is a whole list of
functions. If these functions are deprecated what is the replacement
for them? I couldn't find that info in the doc. Any links will be
helpful.

Thank you,
hj
 
D

Duncan Booth

Hitesh said:
In python doc -- 4.1.4 Deprecated string functions -- I read that "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
functions defined in this module are: " and there is a whole list of
functions. If these functions are deprecated what is the replacement
for them? I couldn't find that info in the doc. Any links will be
helpful.

You did find the info in the doc - you quoted it above:

The functions are deprecated: use the string methods (see section 2.3.6)
instead.
 
S

Simon Forman

Hitesh said:
Hi,

In python doc -- 4.1.4 Deprecated string functions -- I read that "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
functions defined in this module are: " and there is a whole list of
functions. If these functions are deprecated what is the replacement
for them? I couldn't find that info in the doc. Any links will be
helpful.

Thank you,
hj

"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."

i.e. string.lower() => "WHAT?".lower() (would return "what?"...)

HTH,
~Simon
 
H

Hitesh

Thank you guys.

hj

Duncan said:
You did find the info in the doc - you quoted it above:

The functions are deprecated: use the string methods (see section 2.3.6)
instead.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,020
Latest member
GenesisGai

Latest Threads

Top