Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!us.feeder.erje.net!feeder.erje.net!1.eu.feeder.erje.net!bcyclone03.am1.xlned.com!bcyclone03.am1.xlned.com!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'string.': 0.04; 'type,': 0.07; 'subject:module': 0.09; 'subject:string': 0.09; 'cc:addr :python-list': 0.10; 'template': 0.11; 'suggest': 0.15; '-tkc': 0.16; 'alphabet': 0.16; 'constants': 0.16; 'formatting,': 0.16; 'from:addr:python.list': 0.16; 'from:addr:tim.thechases.com': 0.16; 'from:name:tim chase': 0.16; 'inability': 0.16; 'omitting': 0.16; 'wrote:': 0.16; 'string': 0.17; '(or': 0.21; 'cc:2**0': 0.21; 'cc:addr:python.org': 0.21; 'lawrence': 0.22; 'cc:no real name:2**0': 0.23; 'module': 0.23; 'header:In-Reply-To:1': 0.24; 'module.': 0.27; 'methods.': 0.29; 'strings,': 0.29; "i'd": 0.31; 'up.': 0.32; 'possibly': 0.32; 'subject:use': 0.33; 'subject:?': 0.34; 'lists': 0.34; 'useful': 0.35; 'functions.': 0.35; 'replaced': 0.35; 'received:10': 0.37; 'subject:: ': 0.37; 'charset:us-ascii': 0.37; 'rather': 0.38; 'mark': 0.40; 'letters': 0.67; 'online': 0.71; 'received:162.253': 0.84; 'to:addr:yahoo.co.uk': 0.84; 'doubling': 0.91 X-Sender-Id: wwwh|x-authuser|tim@thechases.com X-Sender-Id: wwwh|x-authuser|tim@thechases.com X-MC-Relay: Neutral X-MailChannels-SenderId: wwwh|x-authuser|tim@thechases.com X-MailChannels-Auth-Id: wwwh X-MC-Loop-Signature: 1433263149916:979373191 X-MC-Ingress-Time: 1433263149915 Date: Tue, 2 Jun 2015 11:39:30 -0500 From: Tim Chase To: Mark Lawrence Cc: python-list@python.org Subject: Re: What use of string module? In-Reply-To: References: X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.25; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-AuthUser: tim@thechases.com X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 19 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1433263540 news.xs4all.nl 2935 [2001:888:2000:d::a6]:47445 X-Complaints-To: abuse@xs4all.nl X-Received-Bytes: 3729 X-Received-Body-CRC: 2026098195 Xref: csiph.com comp.lang.python:91861 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