id == vs is
Dan Stromberg
drsalists at gmail.com
Sun Oct 26 20:12:29 EDT 2014
More information about the Python-list mailing list
Sun Oct 26 20:12:29 EDT 2014
- Previous message (by thread): Test driven programming, was Re: VB to Python migration
- Next message (by thread): id == vs is
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Are the following two expressions the same? x is y Id(x) == id(y) ? I ported some Java code to Python, and it was using Java's idea of equality (via ==) in some places. Right now, I have a suite of unit tests working using the second expression above, but I'm thinking about switching to the first. Thanks!
- Previous message (by thread): Test driven programming, was Re: VB to Python migration
- Next message (by thread): id == vs is
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list