On November 11, 2015 at 11:19:07 AM, Paul Moore (p.f.mo...@gmail.com) wrote: > On 11 November 2015 at 15:13, Christophe Bal wrote: > > Hello. > > > > I'm a french teacher and I would like to use Python with young child but > > I've a big problem. All the keyword are in english. So I would like to know > > if there is a way to hack the AST tools such as to use french keywords and > > then translate a list of french keywords to their english regular version. > > > > Where should I start ? My idea is not to build a new language but simply > > translate words using an hacked version of the AST tools. > > > > Hoping to be clear and I do not pollute the message in this list. > > Do you really just mean keywords? Most of the English words used in > Python (for example "open") aren't actually keywords but are names of > functions defined in the builtins and/or standard library. Those are > not exposed as distinct objects in the AST, but are simply name > lookups. >
You might be able to use an encoding to do this. ----------------- Donald Stufft PGP: 0x6E3CBCE93372DCFA // 7C6B 7C5D 5E2B 6356 A926 F04F 6E3C BCE9 3372 DCFA _______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com