IDLE - Customizing output format

Steve Holden steve at holdenweb.com
Sun Sep 24 16:28:51 EDT 2006


Ilias Lazaridis wrote:
> Ilias Lazaridis wrote:
> 
>>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)
> 
> 
> I assume this is not possible.
> 
> I am wondering that other users are not annoyed by this reduced
> readability.
> 
And I am wondering at your continual surprise when the rest of the world 
fails to share your perceptions. Doesn't this carry *any* information?

> anyway.
> 
Indeed.

regards
  Steve
-- 
Steve Holden       +44 150 684 7255  +1 800 494 3119
Holden Web LLC/Ltd          http://www.holdenweb.com
Skype: holdenweb       http://holdenweb.blogspot.com
Recent Ramblings     http://del.icio.us/steve.holden




More information about the Python-list mailing list