Google Groups Home
Help | Sign in
Message from discussion The 'is' identity operator checking immutable values caution
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
castiro...@gmail.com  
View profile
 More options May 13, 6:59 am
Newsgroups: comp.lang.python
From: castiro...@gmail.com
Date: Tue, 13 May 2008 03:59:56 -0700 (PDT)
Local: Tues, May 13 2008 6:59 am
Subject: Re: The 'is' identity operator checking immutable values caution
On May 13, 5:37 am, Christian Heimes <li...@cheimes.de> wrote:

> wxPytho...@gmail.com schrieb:

> > We have to avoid the use of the 'is' identity operator with basic,
> > immutable values such as numbers and strings. The result is
> > unpredictable because of the way Python handles these objects
> > internally.

> You are confusing immutable objects with singletons. Never use "is" with
> strings and numbers.

> Christian

I was back on 'handle'.  Handle internally, handle right.  Gotta be 6
a.m.

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google