GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • [ date ]
  • [ thread ]
  • [ subject ]
  • [ author ]

This view

  • Original page
  • New address

GeezerVison is showing mail.python.org — [Python-Dev] PEP 217 - Display Hook for Interactive Use

[Python-Dev] PEP 217 - Display Hook for Interactive Use

Guido van Rossum [email protected]
Fri, 08 Dec 2000 13:51:49 -0500

  • Previous message: [Python-Dev] RE: {}.popitem() (was Re: {}.first[key,value,item] ...)
  • Next message: [Python-Dev] PEP 217 - Display Hook for Interactive Use
  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

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/)



  • Previous message: [Python-Dev] RE: {}.popitem() (was Re: {}.first[key,value,item] ...)
  • Next message: [Python-Dev] PEP 217 - Display Hook for Interactive Use
  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.