IDLE - Customizing output format

Ilias Lazaridis ilias at lazaridis.com
Sat Sep 23 10:56:06 EDT 2006


IDLE has an output format like this:

 >>> object
<type 'object'>
 >>> type
<type 'type'>
 >>> object.__class__
<type 'type'>
 >>> object.__bases__

How can I customize it to become like that:

 >>> object
     <type 'object'>
 >>> type
     <type 'type'>
 >>> object.__class__
     <type 'type'>
 >>> object.__bases__

or that:

 >>> object
   : <type 'object'>
 >>> type
   : <type 'type'>
 >>> object.__class__
   : <type 'type'>
 >>> object.__bases__

(preferably without modifying code)

.

-- 
http://lazaridis.com



More information about the Python-list mailing list