why () is () and [] is [] work in other way?

Devin Jeanpierre jeanpierreda at gmail.com
Mon Apr 23 16:40:02 EDT 2012


On Mon, Apr 23, 2012 at 4:27 PM, Devin Jeanpierre
<jeanpierreda at gmail.com> wrote:
> Well, no. Immutable objects could always compare equal, for example.
> This is more expensive though. is as-it-stands is very quick to
> execute, which is probably attractive to some people (especially for
> its used in detecting special constants).

I don't know what made me write that so wrong. I meant "immutable
objects that are equal could always compare the same via is".

That makes 4 posts in a row. Sorry for the spam.

-- Devin



More information about the Python-list mailing list