[Pythonmac-SIG] Step-by-step howto for testing new Mach{ho}Python architecture

Tony McDonald tony.mcdonald@ncl.ac.uk
Sun, 04 Aug 2002 20:22:51 +0100


On 4/8/02 7:56 pm, "Donovan Preston" <dp@ulaluma.com> wrote:

>> 1) Is there a 'terminal' version of it?
>> /Library/Frameworks/Python.framework/Versions/2.3/bin/python gives a bus
>> error;
>> Python 2.3a0 (#19, Aug  4 2002, 09:36:17)
>> [GCC 2.95.2 19991024 (release)] on darwin
>> Type "help", "copyright", "credits" or "license" for more information.
>> Bus error
> 
> That is indeed the 'terminal' version. You shouldn't be getting a bus
> error... All I can think is that it's because of the version of readline you
> have installed. Seems about right; readline works only for interactive
> input, therefore setup.py build works; and the ide doesn't use readline so
> that works properly...
> 

That sounds about right...

> So, try uninstalling readline and recompiling. Or, figure out how to get a
> readline installed that doesn't crash the interactive interpreter, because I
> would like to be able to use it as well :)
> 

I wish I could, but I'm at my limit of being able to do this in framework
land. I think if I could get something like that working (interactive
interpreter, framework python, IDE running 'unix' modules like MySQLdb),
then I'd be very happy. However, two out of three isn't bad! :)

> Finally, about the advanced editor patch, it's simply a matter of changing
> all of the toolbox module imports from "import Blah" to "from Carbon import
> Blah"... Otherwise, I didn't have to change a thing to get the advanced
> editor to work. I will try to apply it to my fresh copy of the IDE I
> installed yesterday and post another step-by-step for people interested in
> having this functionality.
> 

That's very interesting. I posted something earlier this afternoon that's on
hold due to the attachment I posted. The attachment is a edited version of
PyEdit.py that includes the changes that Joe Strouts patch would apply to
get syntax colouring enabled.

The 'clean' PyEdit.py doesn't seem to have anything syntax colouring code in
it - perhaps you're using a PyEdit that you've already edited Donovan?

There certainly seem to be differences between PyEdit from CVS and an old
copy of have from MacPython 2.1.

> By the way, Jack or Just, how come this functionality was never incorporated
> into the base IDE? It has some funny behavior, but syntax coloring alone is
> totally worth it...
>

Totally agree there Donovan, but then, it's not me that's putting these
(increasingly good) python distributions together :)

Tone
-- 
Dr Tony McDonald,  Assistant Director, FMCC, http://www.fmcc.org.uk/
The Medical School, Newcastle University Tel: +44 191 243 6140
A Zope list for UK HE/FE  http://www.fmcc.org.uk/mailman/listinfo/zope