What use of string module?

Mark Lawrence breamoreboy at yahoo.co.uk
Mon Jun 1 23:37:58 EDT 2015


On 02/06/2015 03:14, fl wrote:
> Hi,
>
> I read the online help about string. It lists string constants, string
> formatting, template strings and string functions. After reading these,
> I am still puzzled about how to use the string module.
>
> Could you show me a few example about this module?
>
> Thanks
>

I suggest you don't bother, it's effectively dead having been replaced 
by string methods.  See here 
https://docs.python.org/2/library/string.html#deprecated-string-functions and 
then compare to https://docs.python.org/3/library/string.html#module-string

-- 
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence




More information about the Python-list mailing list