On Apr 7, 9:54 am, Steve Holden <[EMAIL PROTECTED]> wrote: > Ronn Ross wrote: > > This is my first post and I'm new to Python. How would someone go about > > adding keywords to Python? It would be great to add support for > > Esperanto keywords in the language instead of English being the only > > option. > > Unfortunately the resulting language would no longer be Python. > > You need to consider software portability: Python has been very > conservative about declaring words to be "keywords" in the language, > though clearly words like "def" and "class" must necessarily be part of > the syntax. > > When you start to replace the keywords, though, your programs are no > longer runnable on all Python installations, and simple transliteration > fails because sometimes a keyword in one (natural) language will > conflict with a programmer's choice of name(s) in another. > > So it's a superficially attractive idea with some really bad downside > consequences. > > regards > Steve > -- > Steve Holden +1 571 484 6266 +1 800 494 3119 > Holden Web LLC http://www.holdenweb.com/
Zhpy is a Chinese-to-English keyword and variable converter. http://pypi.python.org/pypi/zhpy/1.5.2 Perhaps this could give you some ideas. -- Paul -- http://mail.python.org/mailman/listinfo/python-list