ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> python-list
python-list
Re: Python in Chinese
by martin other posts by this author
Aug 13 2007 1:09PM messages near this date
Python in Chinese | C++ Binding with Threads
Paul McGuire schrieb:
>  Back in May, there was quite an extensive discussion of whether or not
>  Python should support Unicode identifiers (with the final result being
>  that this would be supported in Python 3).  In my periodic googling
>  for pyparsing users, I stumbled upon Zhpy, a preprocessor that renders
>  on the fly Chinese Python keywords and indentifiers written using
>  traditional Chinese characters into ASCII counterparts, and then
>  executes the resulting script.  

Interesting!

Notice what they do to the identifiers - when translating to "English",
the just number them. I wonder what this will do to backtraces,
cross-module imports, and such...

With Python 3, they can restrict themselves to just translating
keywords, and leave all identifiers in place.

Regards,
Martin
-- 
http://mail.python.org/mailman/listinfo/python-list
Thread:
Paul McGuire
martin

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved