range of characters?
Bud P. Bruegger
bud at comune.grosseto.it
Tue Dec 16 13:11:22 EST 2003
Hello,
I suppose there should be an elegant way of getting a range of characters
as in
range('A', 'Z')
Anyone knows how to do that? The best I thought of so far is something like
[chr(i) for i in range(ord('A'), ord('Z')+1)], but that seems overly verbose..
thanks
-bud
-------------------------------------------------------------------------------------------------
Ing. Bud P. Bruegger, Ph.D. bud at comune.grosseto.it
Servizio Elaborazione Dati 0564-488 577 (voice)
Comune di Grosseto 0564- 21139 (fax)
Via Ginori, 43
58100 Grosseto
Collaborazione Comuni per la CIE http://www.comune.grosseto.it/cie/
More information about the Python-list
mailing list