GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing mail.python.org — [Python-Dev] PEP 217 - Display Hook for Interactive Use [Python-Dev] PEP 217 - Display Hook for Interactive UseGuido van Rossum [email protected]Fri, 08 Dec 2000 13:51:49 -0500
Moshe proposes to add an overridable function sys.displayhook(obj) which will be called by the interpreter for the PRINT_EXPR opcode, instead of hardcoding the behavior. The default implementation will of course have the current behavior, but this makes it much simpler to experiment with alternatives, e.g. using str() instead of repr() (or to choose between str() and repr() based on the type). Moshe has asked me to pronounce on this PEP. I've thought about it, and I'm now all for it. Moshe (or anyone else), please submit a patch to SF that shows the complete implementation! --Guido van Rossum (home page: http://www.python.org/~guido/)
|
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |