Avoiding the __repr__ call or protecting an instance from evaluation URG. please
Fernando Rodríguez
spamers at must.die
Mon Jan 29 07:29:50 EST 2001
On Sat, 27 Jan 2001 19:10:07 +0100, Fernando Rodríguez <spamers at must.die>
wrote:
>Hi!
>
> I have a class whose __repr__ method returns a string. Whenever I pass
>an instance of this class to a function, what the function gets is the result
>of __repr__. Most of the time this is OK, but under certain circumstances I
>also need to make sure that a function receives an instance of the class, and
>the the string that __repr__ returns.
>
It was a confusion, sorry. Thanks to Emile and Donn. :-)
//-----------------------------------------------
// Fernando Rodriguez Romero
//
// frr at mindless dot com
//------------------------------------------------
More information about the Python-list
mailing list