[Tutor] Fwd: Available characters

2013-05-23 Thread Citizen Kant
Thanks! There are only 127 ASCII characters, so getting a list of them is trivial: ascii = map(chr, range(128)) # Python 2 ascii = list(map(chr, range(128))) # Python 3 or if you prefer a string: ascii = ''.join(map(chr, range(128))) If you don't like map(), you can use a list comprehensio

Re: [Tutor] Fwd: Available characters

2013-05-22 Thread Jim Mooney
> The unicodedata module provides access to the Unicode database that Python > uses: > > http://docs.python.org/2/library/unicodedata#unicodedata.unidata_version That was really useful for another reason. After I checked and saw it was in DLLs, I investigated the other Python DLLs - which had her

[Tutor] Fwd: Available characters

2013-05-22 Thread Citizen Kant
On Wed, May 22, 2013 at 2:14 PM, Citizen Kant wrote: > Does anybody know if there's a Python method that gives or stores the > complete list of ascii characters or unicode characters? The list of every > single character available would be perfect. The unicodedata module provides access to the Un