[issue10660] format() to lower and uppercase

2010-12-10 Thread Hervé Cauwelier
Hervé Cauwelier added the comment: Thanks for the example. The Python 2.7 documentation about the mini-language doesn't clearly state that it is extensible and how. we see examples of formatting but not of extending. Your example would be welcome in the document

[issue10660] format() to lower and uppercase

2010-12-09 Thread Hervé Cauwelier
New submission from Hervé Cauwelier : Hexadecimals can be formatted to lower and uppercase: >>> '{0:x}'.format(123) '7b' >>> '{0:X}'.format(123) '7B' I would like the same thing for strings: >>> '{0.lastname:u} {0.firs

[issue8199] zipfile.py: consistency between "write" and "writestr"

2010-03-22 Thread Hervé Cauwelier
New submission from Hervé Cauwelier : Hi, In class "ZipFile", method "write" accepts "compress_type" parameter but not the "writestr" method. I see no reason for this limitation and the change is trivial. This is needed for generating ODF docum