is implemented with id ?
Ian Kelly
ian.g.kelly at gmail.com
Wed Sep 5 13:08:43 EDT 2012
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?
More information about the Python-list
mailing list