From 4ef21612a75f57aef11c587f5568498427353bf8 Mon Sep 17 00:00:00 2001 From: Arne Babenhauserheide Date: Fri, 8 Apr 2011 11:20:37 +0200 Subject: GSoC PyHurd application: Note about an idea for a really simple API. --- community/weblogs/ArneBab/2011-04-06-application-pyhurd.mdwn | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'community/weblogs/ArneBab/2011-04-06-application-pyhurd.mdwn') 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__changed. + source is the node below and repres is the translated node -- cgit v1.2.3