[Python-Dev] Re: String module

Michael Hudson mwh@python.net
30 May 2002 12:59:39 +0100


Neal Norwitz <neal@metaslash.com> writes:

> Guido van Rossum wrote:
> 
> > BTW, how about deprecating strop while we're at it?
> 
> Right now in string.py, there is:
> 
> 	from strop import maketrans, lowercase, uppercase, whitespace
> 	letters = lowercase + uppercase
> 
> However, lowercase, uppercase, and letters are already defined
> in string.py.  It seems the only function being used from strop
> is maketrans.  Is this correct?  Should the others be removed 
> from string.py?

The strop definitions reflect the locale better than the ones in
string.py.

Cheers,
M.

-- 
  And then the character-only displays went away (leading to
  increasingly silly graphical effects and finally to ads on
  web pages).                      -- John W. Baxter, comp.lang.python