[Tutor] Available characters

eryksun eryksun at gmail.com
Wed May 22 20:26:18 CEST 2013


On Wed, May 22, 2013 at 2:14 PM, Citizen Kant <citizenkant at gmail.com> 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 Unicode database that Python uses:

http://docs.python.org/2/library/unicodedata#unicodedata.unidata_version

Here are the versions of the database for Python 2.6.8, 2.7.3, 3.2.3, and 3.3.1:

    >>> unicodedata.unidata_version # 2.6.8
    '5.1.0'
    >>> unicodedata.unidata_version # 2.7.3
    '5.2.0'
    >>> unicodedata.unidata_version # 3.2.3
    '6.0.0'
    >>> unicodedata.unidata_version # 3.3.1
    '6.1.0'


More information about the Tutor mailing list