git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


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