[Tutor] Fwd: Available characters

Citizen Kant citizenkant at gmail.com
Wed May 22 21:12:35 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'


Thanks! This is perfect.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20130522/9f90c41c/attachment.html>


More information about the Tutor mailing list