Re: difficulty with microedit.py on a Mac

Guido van Rossum (guido@cwi.nl)
Wed, 02 Sep 1992 21:43:24 +0200

>Python 0.9.7 (from ftp.cwi.nl)
>The following message appeared on the title bar:
> zrealloc(0x2ec2a8,0): out of mem

I'm sorry, the 0.9.7beta Mac Python binary for a while contained the
same bug as the sources there, as explained in a previous message to
this list. I have placed a fixed Mac Python there around 30 August,
so if you fetched it before that date you should fetch a fresh copy
and try again. (Note that the new file isn't compacted with stuffit.
I could fix it but I only occasionally have access to a Mac where I
can compile Python these days...)

>Also, is there any doc that describes what modules
>are compiled into Python 0.9.7 for the Mac?

Not really -- there probably should be... Here's an excerpt from the
config file I used:

#define STDWIN 1
[...]
/* Standard modules */
{"time", inittime},
{"math", initmath},
{"regex", initregex},

/* Mac-specific modules */
{"mac", initmac},
#ifdef USE_STDWIN
{"stdwin", initstdwin},
#endif
{"marshal", initmarshal},

Note that the modules 'sys' and 'builtin' as well as '__main__' are
always present (see the Library reference manual for a description of
these).

BTW, for documented modules it is of course trivial to test whether
they exist or not:

try:
import foo
print 'foo exists'
except ImportError:
print 'foo does not exist'

--Guido van Rossum, CWI, Amsterdam <guido@cwi.nl>
"The lawnmower. Surely such a gadget could not have been generated
independently in two separate areas."