I need some help:
1) BDFL pronouncement
2) someone to see about the Jython issue.
Thank you for your co-operation.
--
Moshe Zadka
1) BDFL pronouncement
I believe Ping has also proposed such a display hook. I'm not against the idea, but I'm also not much in favor -- so I'm kind of +/- 0... I've always thought that the interpreter mainloop should be rewritten in Python. That would be another PEP, and this would be a good place to add a display hook as a feature. Note that the example curreltly in the PEP has a fatal flaw: it's got a recursive reference to print. This is one of the things to consider when proposing such a feature. Sorry I can't be of more help... --Guido van Rossum (home page: http://www.python.org/~guido/)
I think the current draft of PEP 217 is far too thin and vague to be acceptable. You ought to re-read the PEP guidlines and make sure you've covered all the points. You must address at least: - motivation - specification of feature independent of implementation Jeremy
[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
On Thu, 2 Nov 2000, Finn Bock wrote:
However, I think your example implementation should be:
def displayhook(o): if o is None: return __builtin__._ = None print `o` __builtin__._ = o
You're right.
I'll just add the necessary Jython changes to PEP-0217.
Thanks a lot.
I don't like this either, but the good news is that in Py2.1, you'll
be able to change this in site.py <wink>
--
Moshe Zadka
participants (5)
-
barry@wooz.org
-
bckfnn@worldonline.dk
-
Guido van Rossum
-
Jeremy Hylton
-
Moshe Zadka