Re: Fwd: class print method...

2011-12-05 Thread Suresh Sharma
Dave / Ryan Thanks i have got it and it worked after using repr statement. Thanks everyone for their valuable feedback. On Mon, Dec 5, 2011 at 6:11 PM, Lie Ryan wrote: > On 12/05/2011 10:18 PM, Suresh Sharma wrote: > >> >> Pls help its really frustrating >> -- Forwarded message ---

Re: Fwd: class print method...

2011-12-05 Thread Terry Reedy
On 12/5/2011 8:09 AM, Dave Angel wrote: useful, such as if you print a list. The __str__() method of list calls the __repr__() for each object inside it. So it can be useful to define both, even if you decide to have them do the same thing. If you want __str__ and __repr__ to do the same thing

Re: Fwd: class print method...

2011-12-05 Thread Dave Angel
On 12/05/2011 07:41 AM, Lie Ryan wrote: On 12/05/2011 10:18 PM, Suresh Sharma wrote: Pls help its really frustrating -- Forwarded message -- From: Suresh Sharma Date: Monday, December 5, 2011 Subject: class print method... To: "d...@davea.name " mailto:d.

Re: Fwd: class print method...

2011-12-05 Thread Lie Ryan
On 12/05/2011 10:18 PM, Suresh Sharma wrote: Pls help its really frustrating -- Forwarded message -- From: Suresh Sharma Date: Monday, December 5, 2011 Subject: class print method... To: "d...@davea.name " mailto:d...@davea.name>> Dave, Thanx for the qui