Depricated String Functions in Python

Stefan Behnel stefan.behnel-n05pAM at web.de
Thu Jul 20 02:38:53 EDT 2006


Anoop wrote:
> Can any one help me out with the various depricated string functions
> that is followed in Python.
> 
> For example how will be string.lower depricated.
> 
> As far as string.lower('PYTHON') is concerned it is depricated as
> 'PYTHON'.lower(). Both of them would return an output : >>> python

I don't quite see the question in your post, but, yes, the module level
functions of the "string" module are deprecated in favour of the methods of
the str and unicode objects.

Stefan



More information about the Python-list mailing list