[Python-Dev] PEP-0217

Finn Bock bckfnn@worldonline.dk
Thu, 02 Nov 2000 15:37:43 GMT


[Moshe Zadka]

>I need some help:
>
>1) BDFL pronouncement
>2) someone to see about the Jython issue.

I don't see any problems with this. This is already handled by a method
in the jython runtime (Py.printResult).

However, I think your example implementation should be:

    def displayhook(o):
        if o is None:
            return
        __builtin__._ = None
        print `o`
        __builtin__._ = o

I don't why, but that is the implementation currently used by Jython
(and I think CPython too).

regards,
finn