Grumpy-pants spoil-sport [was Re: [Tutor] beginning to code]

Antoon Pardon antoon.pardon at rece.vub.ac.be
Mon Sep 25 16:29:51 EDT 2017


On 25-09-17 18:29, Steve D'Aprano wrote:

> 
> Regardless of whether I'm using Python, Swift, Java, C, Pascal or Scheme, if I
> write something like:
> 
> x = Parrot(name="Polly")
> 
> (using Python syntax for simplicity) and somebody tries to tell me that the
> value of x is anything but a Parrot instance named "Polly", I have no time for
> that sort of nonsense. They might as well tell me that I'm typing this response
> on an elephant.

And if you write it like that, implying that the assignment semantics is the
same for all these languages, I'm not surprises people get confused.

-- 
Antoon Pardon.



More information about the Python-list mailing list