Re: [Pyobjc-dev] Interactive interpreter in PyObjC
Brought to you by:
ronaldoussoren
From: Bob I. <bo...@re...> - 2003-10-27 17:33:48
|
On Oct 27, 2003, at 8:47 AM, Bob Ippolito wrote: > I started working on an interactive in-process interpreter for PyObjC > applications. Here's what it does so far: > Simple coloring of sys.stdout and sys.stderr > Supports unicode (but assumes non-unicode is utf8 for now) > Command history (up key, down key) > Limits editing and cursor position (but not selection) to ONLY the > active line of code > All the nice things that editing in a NSTextView gives you > > Obvious future enhancements would be: > Auto indent > Syntax highlighting > Completion > sys.stdin (for raw_input and such -- might be too hard to do without > stackless, threads, or other nasty stuff) Ok I fixed some nasty bugs (thanks Just), use this one now: http://undefined.org/python/PyInterpreter-0.1.tgz I also added sys.stdin.readline support (which gives you raw_input as well) in a similar way to how the MacPython IDE does it: A modal NSPanel input dialog (yay). It's ugly but it works. -bob |