On Feb 11, 2010, at 05:07 PM, Jonathan Lange wrote:

>On Thu, Feb 11, 2010 at 5:00 PM, Tom Berger <[email protected]> wrote:

>> 1. The default repr is unique. Should we try and preserve that?
>
>As a rule of thumb, I try to have repr(a) == repr(b) <==> (a == b),
>rather than (a is b). I don't know if that's standard or helps.

Yep.  I think because reprs are strings they should be compared by equality
instead of identity.

-Barry

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Mailing list: https://launchpad.net/~launchpad-dev
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~launchpad-dev
More help   : https://help.launchpad.net/ListHelp

Reply via email to