[Python-Dev] At the interactive port
Guido van Rossum
guido@python.org
Tue, 02 May 2000 00:51:45 -0400
> > import __builtin__
> import sys # Sorry, I couldn't resist
> > def displayhook(obj):
> > if obj is None:
> > return
> > __builtin__._ = obj
> > sys.stdout.write("%s\n" % repr(obj))
>
> This brings up a painful point -- the reason I haven't wrote the default
> is because it was way much easier to write it in Python. Of course, I
> shouldn't be preaching Python-is-easier-to-write-then-C here, but it
> pains me Python cannot be written with more Python and less C.
>
But the C code on how to do it was present in the code you deleted
from ceval.c!
> A while ago we started talking about the mini-interpreter idea,
> which would then freeze Python code into itself, and then it sort of
> died out. What have become of it?
Nobody sent me a patch :-(
--Guido van Rossum (home page: http://www.python.org/~guido/)