>> * I remembered why the __repr__ function had a 'show' argument.  I've
>> changed the name now to make it more clear and added a docstring.
>> The idea was the some use cases require that the repr exactly match
>> the default style for tuples and the optional argument allowed for that
>> possiblity with almost no performance hit.
> 
> But what about simply changing the __repr__?
 . . .
> In [4]: Point.__repr__ = tuple.__repr__

Okay, that is the better way.


Raymond
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to