Grumpy-pants spoil-sport [was Re: [Tutor] beginning to code]
Chris Angelico
rosuav at gmail.com
Mon Sep 25 13:35:45 EDT 2017
On Tue, Sep 26, 2017 at 2:52 AM, Tim Chase
<python.list at tim.thechases.com> wrote:
> On 2017-09-26 02:29, Steve D'Aprano wrote:
>> 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",
>
> So this is a Polly-morphic constructor?
Steve actually said:
> Regardless of whether I'm using Python, Swift, Java, C, Pascal or Scheme, if I
> write something like:
So it's actually Polly-glot.
ChrisA
More information about the Python-list
mailing list