porting bpython

22 views
Skip to first unread message

Terry

unread,
Sep 18, 2011, 12:49:02 PM9/18/11
to bpython
I am the author of Python Math, a Python 2.7 interpreter for the
iPhone/iPad that does nor require jail breaking.

I would like to add auto-complete and syntax highlighting to the
interpreter as well as a script editor that provides these
capabilities.

Since there are limited resources (both my time and memory in the
iPhone/iPad are limited), I'm looking for a light weight solution.
Porting a big framework such as wxWidgets, GTK+, or Qt just isn't
practical.

When I discovered bpython, I became hopeful this might be a solution.
Would anyone care to comment on the feasibility of either replacing
curses in bpython or adapting the bpython autocomplete and syntax
highlighting?

I'm willing to evaluate the use of any combination of python, C, and
Objective-C to get this working.

Thanks.

--Terry

Bob Farrell

unread,
Sep 19, 2011, 4:12:50 AM9/19/11
to bpy...@googlegroups.com
Yowch, this is a tough question to answer. :)

Firstly, I hope it goes without saying that you are more than welcome
to take as much bpython code as you like and use it in your project -
it's MIT licensed because we like sharing.

So, here is my best guess answer to your question: since we have
different front-ends (ncurses, gtk+, urwid - the latter two are not
complete but do work) it seems to me that you could write a front-end
yourself that would be completely independent of ncurses.

What this means is that you would be porting bpython to iPhone, so I'm
not sure if this is your real goal here. Perhaps this would be a good
base for you to build your application on ... either way, feel free to
ask more specific questions as you go through the codebase and we'll
do our best to answer (we don't really do any work on the codebase any
more so answering questions makes us feel like we are still working on
the project :-)

Good luck with your project !

> --
> You received this message because you are subscribed to the Google Groups "bpython" group.
> To post to this group, send email to bpy...@googlegroups.com.
> To unsubscribe from this group, send email to bpython+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/bpython?hl=en.
>
>

Terry

unread,
Sep 19, 2011, 4:02:03 PM9/19/11
to bpython
Thanks. I've looked through some of the bpython code. At this point,
I'm thinking of using bpython more for inspiration than code. For
example, it looks as though I may only have to write a formatter to
implement syntax highlighting with pygments.
Reply all
Reply to author
Forward
0 new messages