[Python-Dev] Re: [Python-checkins] CVS: python/dist/src/Lib/plat-irix5 cddb.py,1.10,1.11
Guido van Rossum
guido@digicool.com
Fri, 09 Feb 2001 15:27:16 -0500
> The only string imports left are the ones that have to be there because
> the code is using a string module constant like string.whitespace or
> one of the two odd functions that don't exist as methods, zfill and
> maketrans. Are there any plans to introduce boolean-valued string
> methods corresponding to the ctype.h functions? That would make
> it possible to remove most of the remaining imports.
Yes, these already exist, e.g. s.islower(), s.isspace(). Note that
they are locale dependent.
> This was like old times. pulling an all-nighter to clean up a language
> library. I did a *lot* of work like this on Emacs back in the early
> 1990s. Count your blessings; the Python libraries are in far better
> shape.
Thanks!
--Guido van Rossum (home page: http://www.python.org/~guido/)