IDLE - Customizing output format

Ilias Lazaridis ilias at lazaridis.com
Sun Sep 24 22:40:43 CEST 2006


Steve Holden wrote:
> 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?

not the rest of the world, but the rest of the python community.

That's a big difference.

So it looks that I have to code to change the output format.

Reminds me 'good old days'.

> > anyway.
> > 
> Indeed.




More information about the Python-list mailing list