I'm wrong or Will we fix the ducks limp?

Marko Rauhamaa marko at pacujo.net
Mon Jun 6 04:13:51 EDT 2016


Random832 <random832 at fastmail.com>:

> On Sun, Jun 5, 2016, at 15:20, Marko Rauhamaa wrote:
>> I say None is a wooden post, you say None is a puppy.
>> 
>> What piece of Python code could put our dispute to rest?
>
> isinstance(None, object)

Well, the wooden post is an object as are all puppies.

It's bad enough to objectify sentient beings; I just don't have the
heart to put a cute, fluffy puppy in the role of None. The fact that
CPython does that could be considered animal cruelty.


Marko


More information about the Python-list mailing list