On 03/05/2015 06:55 PM, Ben Finney wrote:

>     class NullType(object):
>         """ A type whose value never equals any other.
> 
>             This type's values will behave correctly when tested for
>             membership in a collection::
> 
>                 >>> foo = NullType()
>                 >>> bar = NullType()
>                 >>> foo is foo
>                 True
>                 >>> foo is bar
>                 False
>                 >>> foo == foo
>                 False
>                 >>> foo == bar
>                 False
>                 >>> quux = [foo, "spam"]
>                 >>> "spam" in quux
>                 True
>                 >>> foo in quux
>                 True

Did you mean False here?  Because True is current behavior.

--
~Ethan~

Attachment: signature.asc
Description: OpenPGP digital signature

-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to