Re: [Tutor] Alter print action for objects

2008-07-23 Thread Jordan Greenberg
Shrutarshi Basu wrote: I'm working on a graph class to become more familiar with graphs in general. I'd like to be able to do something like 'print gr' and get something intelligible like a list of vertices. But using print on a Graph class instance simply returns Is there someway I can change

[Tutor] Alter print action for objects

2008-07-23 Thread Shrutarshi Basu
I'm working on a graph class to become more familiar with graphs in general. I'd like to be able to do something like 'print gr' and get something intelligible like a list of vertices. But using print on a Graph class instance simply returns Is there someway I can change what print prints? -- T