I'm wrong or Will we fix the ducks limp?
marko at pacujo.net
Sun Jun 5 15:20:44 EDT 2016
Random832 <random832 at fastmail.com>:
> On Sun, Jun 5, 2016, at 04:01, Marko Rauhamaa wrote:
>> You could also think of variables as pegs, references as leashes, and
>> objects as cute puppies. One puppy could be held with multiple
>> leashes hung on separate pegs. Some puppies hold leashes in their
>> mouths. Every leash is tied to a puppy or a special wooden post
>> called None.
> You've got it all wrong about what's special about None. The object is
> just another puppy. There *is* a variable called None
> [getattr(__builtins__, 'None')] which holds a leash tied to that
> puppy, but it's rarely used, since everyone knows how to find that
> puppy directly [None is a keyword]. But nothing's special about the
> object itself, no more than any other object.
I say None is a wooden post, you say None is a puppy.
What piece of Python code could put our dispute to rest?
More information about the Python-list