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
Marco Mariani  
View profile
 More options May 13, 6:26 am
Newsgroups: comp.lang.python
From: Marco Mariani <ma...@sferacarta.com>
Date: Tue, 13 May 2008 12:26:13 +0200
Local: Tues, May 13 2008 6:26 am
Subject: Re: The 'is' identity operator checking immutable values caution

wxPytho...@gmail.com wrote:
> We have to avoid the use of the 'is' identity operator with basic,
> immutable values such as numbers and strings.

I'm glad for you. Did you really write checks like "if foo is 27" ?

The point is, you have to learn technologies to use them. It's not like
technologies learn you (not even in soviet Russia)

> How is with this issue in Python 3.0? Is it fixed?

There is nothing to fix.

> Does Python handle this things properly now?

It always did.

    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