[Python-Dev] other "magic strings" issues

Jeremy Fincher fincher.8 at osu.edu
Fri Nov 7 17:58:03 EST 2003


On Friday 07 November 2003 04:07 pm, Martin v. Löwis wrote:
> Thomas Heller <theller at python.net> writes:
> > But there are probably more useful combinations like
> >
> >     string.letters + string.digits + "_"
>
> I think the typical application of this should use regular expressions
> instead.

A typical application, sure.  But not all applications -- what if the string 
is being built, for instance, to pass as the optional "delete" argument of 
str.translate?

Jeremy



More information about the Python-Dev mailing list