diff options
author | Arne Babenhauserheide <arne_bab@web.de> | 2011-04-08 11:20:37 +0200 |
---|---|---|
committer | Arne Babenhauserheide <arne_bab@web.de> | 2011-04-08 11:20:37 +0200 |
commit | 4ef21612a75f57aef11c587f5568498427353bf8 (patch) | |
tree | c930bebd1bb402d665f54fa56602951f3ee2560f /community/weblogs/ArneBab/2011-04-06-application-pyhurd.mdwn | |
parent | a7e1c08e2be8089c2cd6247ad6a7b1b097c0613c (diff) |
GSoC PyHurd application: Note about an idea for a really simple API.
Diffstat (limited to 'community/weblogs/ArneBab/2011-04-06-application-pyhurd.mdwn')
-rw-r--r-- | community/weblogs/ArneBab/2011-04-06-application-pyhurd.mdwn | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/community/weblogs/ArneBab/2011-04-06-application-pyhurd.mdwn b/community/weblogs/ArneBab/2011-04-06-application-pyhurd.mdwn index 662f7a96..420b1cab 100644 --- a/community/weblogs/ArneBab/2011-04-06-application-pyhurd.mdwn +++ b/community/weblogs/ArneBab/2011-04-06-application-pyhurd.mdwn @@ -108,4 +108,12 @@ Also i want to get it merged into the main git repositories, so it is directly a ### Anything else you want to add to your application? -Alternately I would also like to work on [[fixing Python testsuite breakages|community/gsoc/project_ideas/perl_python]]. Both tasks together (PyHurd and Testsuite) work towards having Python as first-class citizen on the Hurd, adding all of the Python standard library to the options for using the Hurd. +I’d love to work on PyHurd, because it grips me more and more. A high level API might get as simple as + + from translator.source.text import * + from translator.representation.tree import * + def source_text_changed(text): … (adapt tree object) + def repres_tree_changed(tree): … (adapt text object) + → 2-way connecting + writeonly is then done by simply leaving out the definition for the source_<whatever>_changed. + source is the node below and repres is the translated node |