[Edu-sig] Python's keywords and functions convertor into native language for lowering entrance barrier

Henrique Bastos henrique at bastos.net
Sun Feb 10 16:20:36 CET 2013


Murat,

It's a hack, but it's also possible to pre-process the source code. Check
out PEP 263 <http://www.python.org/dev/peps/pep-0263/>.

Luciano Ramalho <http://twitter.com/ramalhoorg>
published<http://www.python.org.br/wiki/LinguagemSucuri>his project
Sucuri <https://code.google.com/p/propython/source/browse/mafua/sucuri>(native
brazilian name for Python) as an exercise inspired by a blog
post from <http://benjiyork.com/blog/2008/02/programmable-python-syntax-via-source.html>Benji
York<http://benjiyork.com/blog/2008/02/programmable-python-syntax-via-source.html>
.

This would enable you to "remap" all the keywords.

Using this combined with Kirby's strategy may be enough to introduce
programing to your students with simple projects written in their native
language.

All the best,

--
Henrique Bastos <http://henriquebastos.net>

Twitter: @henriquebastos <http://twitter.com/henriquebastos>
Skype: henriquebastos.net
+55 21 9618-6180


On Sun, Feb 3, 2013 at 12:44 AM, kirby urner <kirby.urner at gmail.com> wrote:

> I think Kython is a wonderful idea, and corresponding trainers in any
> Unicode language.
>
> Ideally there'd be a Kython -> Python translator, even at the source code
> level, that only swapped in the Python keywords, builtins, special names,
> Standard Library names.
>
> This looks like a "round trip" exercise (goes both ways), meaning any
> Unicode community might craft something similar.
>
> Given the isomorphisms involved (no information is lost), it seems
> possible to translate from any to any.
>
> Yes, that makes it sounds easier than it is.  Something to chip away at
> over time.
>
> Kirby
>
>
>
> _______________________________________________
> Edu-sig mailing list
> Edu-sig at python.org
> http://mail.python.org/mailman/listinfo/edu-sig
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/edu-sig/attachments/20130210/f95f0f98/attachment.html>


More information about the Edu-sig mailing list