is implemented with id ?
Ian Kelly
ian.g.kelly at gmail.com
Wed Sep 5 13:08:43 EDT 2012
More information about the Python-list mailing list
Wed Sep 5 13:08:43 EDT 2012
- Previous message (by thread): is implemented with id ?
- Next message (by thread): is implemented with id ?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Wed, Sep 5, 2012 at 8:13 AM, Steven D'Aprano <steve+comp.lang.python at pearwood.info> wrote: > You *cannot* replace is with id() except when the objects are guaranteed > to both be alive at the same time, and even then you *shouldn't* replace > is with id() because that is a pessimation (the opposite of an > optimization -- something that makes code run slower, not faster). Shouldn't that be "pessimization" for symmetry?
- Previous message (by thread): is implemented with id ?
- Next message (by thread): is implemented with id ?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list