Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.008 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; '"""': 0.07; 'from:addr:ethan': 0.09; 'from:addr:stoneleaf.us': 0.09; 'from:name:ethan furman': 0.09; 'here?': 0.09; 'message- id:@stoneleaf.us': 0.09; '~ethan~': 0.09; 'behave': 0.16; 'filename:fname piece:signature': 0.16; 'finney': 0.16; "type's": 0.16; 'wrote:': 0.18; '>>>': 0.22; 'header:User-Agent:1': 0.23; 'values': 0.27; 'header:In-Reply-To:1': 0.27; 'membership': 0.31; 'class': 0.32; 'subject: (': 0.35; 'false': 0.36; 'subject:?': 0.36; 'ben': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'received:173': 0.61; 'skip:n 10': 0.64; 'equals': 0.68; 'other.': 0.75; '"spam"': 0.84 Date: Thu, 05 Mar 2015 19:18:08 -0800 From: Ethan Furman User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Is nan in (nan,) correct? References: <54f90c53$0$12994$c3e8da3$5496439d@news.astraweb.com> <858ufazvff.fsf@benfinney.id.au> In-Reply-To: <858ufazvff.fsf@benfinney.id.au> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="NiXNeT9oCR82lDmPuGGfpGFnrAovINEoC" X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.19 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 59 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1425611901 news.xs4all.nl 2863 [2001:888:2000:d::a6]:45312 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:86976 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --NiXNeT9oCR82lDmPuGGfpGFnrAovINEoC Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 03/05/2015 06:55 PM, Ben Finney wrote: > class NullType(object): > """ A type whose value never equals any other. >=20 > This type's values will behave correctly when tested for > membership in a collection:: >=20 > >>> foo =3D NullType() > >>> bar =3D NullType() > >>> foo is foo > True > >>> foo is bar > False > >>> foo =3D=3D foo > False > >>> foo =3D=3D bar > False > >>> quux =3D [foo, "spam"] > >>> "spam" in quux > True > >>> foo in quux > True Did you mean False here? Because True is current behavior. -- ~Ethan~ --NiXNeT9oCR82lDmPuGGfpGFnrAovINEoC Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQIcBAEBAgAGBQJU+RxyAAoJENZ7D1rrH75NpukP/A1VPLX0u444mkV8q+7CMink YjnwamFfydtw23hsyU6Otd8BLwIrjPK7Rsq4KHVeRmltA9JNTGcQBsHuRW96d6x2 KtKrap/qjc2pDEVvLIz9/QrATyzELwRBJxryYAZdYeDP3oPsXqjqLTsogssOkzm1 Z7eMjHSjB2wSmsfZzthFgzKZPlBq89J9yUm3qXtAB64N4dDFo/7JJWynPQyVCtQf ZG+SmSFIYSYAn0Asq5iKx3o0SdSUf4DrazBIotIUN/ugkPlxs3reuoK4hUh7mN5Q 23CnQN7P+XgOTKtXU1Xt1XPbygOuT7UDkMPIfpoz4dLKDPtE0TvgDpwHQdh4aRCf cGWN0mJ564FvZsWYJH30C4JGDMPKVXSa4FiulZ9K0lPvCYFSYz1D2vvW0gIKk9WL EWwgsHWnLHysDFK01++96kaMl4twKjHLjYlH4PQ98UEQYRK0Pq+FxfRvpV+hkYYD Bhys+CMXyBrsnVN+Vs5eheLGm10bomvLZmMchpXHQwLlOVsC49L7xvfCUGSUhtsK UoTf31ebqCBJ64K/APCz121BpBjsEv+0tXv4EJqoi5nEcStn+hQRnq7aABW2qIwa vE9iVc/jGdOPEheoheApWpZGwkw5DG/ClPtm6C22kWxlqNZInqgd7B7KR4175i6x bcPRMBDO8CaARrJzPJ8l =uep/ -----END PGP SIGNATURE----- --NiXNeT9oCR82lDmPuGGfpGFnrAovINEoC--