Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #91861

Re: What use of string module?

Date 2015-06-02 11:39 -0500
From Tim Chase <python.list@tim.thechases.com>
Subject Re: What use of string module?
References <d3bf3182-d70e-4160-b600-733cbda748e6@googlegroups.com> <mkj8ep$3v7$1@ger.gmane.org>
Newsgroups comp.lang.python
Message-ID <mailman.72.1433263540.13271.python-list@python.org> (permalink)

Show all headers | View raw


On 2015-06-02 04:37, Mark Lawrence wrote:
> > 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.
> 
> I suggest you don't bother, it's effectively dead having been
> replaced by string methods.

While most of the functions in the string module are obsoleted by the
methods on strings, I still find the constants useful to save myself
from my own inability to type, possibly omitting letters from the
alphabet or doubling them up.  I'd much rather just reference
string.printable than try to recreate it (or its kin) myself.

-tkc


Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

What use of string module? fl <rxjwg98@gmail.com> - 2015-06-01 19:14 -0700
  Re: What use of string module? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-06-02 04:37 +0100
  Re: What use of string module? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-06-02 17:21 +1000
  Re: What use of string module? Laura Creighton <lac@openend.se> - 2015-06-02 11:39 +0200
  Re: What use of string module? Tim Chase <python.list@tim.thechases.com> - 2015-06-02 11:39 -0500

csiph-web