Re: __str__ vs __repr__

2005-06-16 Thread Donn Cave
In article <[EMAIL PROTECTED]>, "John Roth" <[EMAIL PROTECTED]> wrote: > "Donn Cave" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Quoth "John Roth" <[EMAIL PROTECTED]>: > > ... > > | str() should be something that's meaningful to a human being when > > | it's printed or othe

Re: __str__ vs __repr__

2005-06-16 Thread John Roth
"Donn Cave" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Quoth "John Roth" <[EMAIL PROTECTED]>: > ... > | str() should be something that's meaningful to a human being when > | it's printed or otherwise rendered. > > I can't believe how many people cite this explanation - meaningf

Re: __str__ vs __repr__

2005-06-15 Thread Donn Cave
Quoth "John Roth" <[EMAIL PROTECTED]>: ... | str() should be something that's meaningful to a human being when | it's printed or otherwise rendered. I can't believe how many people cite this explanation - meaningful, friendly, pretty to a human being. What on earth does this mean, that couldn't b

Re: __str__ vs __repr__

2005-06-15 Thread John Roth
"Jan Danielsson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Sorry, but I Just Don't Get It. I did search the 'net, I did read the > FAQ, but I'm too dumb to understand. > > As far as I can gather, __str__ is just a representation of the > object. For instance: > > class Serv