[Patches] [Patch #103170] (MosheZ) Implement PEP 217

noreply@sourceforge.net noreply@sourceforge.net
Wed, 10 Jan 2001 12:23:37 -0800


Patch #103170 has been updated. 

Project: python
Category: core (C code)
Status: Accepted
Submitted by: tim_one
Assigned to : gvanrossum
Summary: (MosheZ) Implement PEP 217

Follow-Ups:

Date: 2001-Jan-10 12:23
By: gvanrossum

Comment:
Moshe, I've ACCEPTED your patch.  Please check it in and close it.

Congratulations!

-------------------------------------------------------

Date: 2001-Jan-10 08:41
By: gvanrossum

Comment:
I agree with Moshe -- there's no need to save the original.

-------------------------------------------------------

Date: 2001-Jan-10 03:22
By: moshez

Comment:
Ping: I don't think this is really necessary. No one should have need to
"restore the original": this is likely to be set from .pythonrc scripts and
their ilk. If a user defined routine wants to call on the original, it
should save a reference to the original itself. This is the same philosophy
that is taken with regards to __import__, which I tried to emulate.

-------------------------------------------------------

Date: 2001-Jan-10 03:17
By: moshez

Comment:
Stop gap measure, seeing as the patches@python.org method did not work...

OK. This one is with docs.

-------------------------------------------------------

Date: 2001-Jan-10 02:45
By: ping

Comment:
This patch appears truncated (check out the last line).
-------------------------------------------------------

Date: 2001-Jan-10 02:44
By: ping

Comment:
Maybe there should be a saved copy of the original built-in routine in
sys.__displayhook__ so that (a) we can always restore the hook if we lose
it and (b) a user-written displayhook routine can call on the original.
-------------------------------------------------------

-------------------------------------------------------
For more info, visit:

http://sourceforge.net/patch/?func=detailpatch&patch_id=103170&group_id=5470