On Wed, May 22, 2013 at 2:14 PM, Citizen Kant <citizenk...@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'


Thanks! This is perfect.
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to