[Python-ideas] Match statement brainstorm

Greg Ewing greg.ewing at canterbury.ac.nz
Sun May 29 19:00:00 EDT 2016

Franklin? Lee wrote:
> On May 28, 2016 4:48 AM, "Greg Ewing" <greg.ewing at canterbury.ac.nz 
> <mailto:greg.ewing at canterbury.ac.nz>> wrote:
>  >
>  > No, keyword pattern args should probably match either
>  > keyword constructor args or attributes.
> That would make things ambiguous and tricky, wouldn't it?

My feeling is that for any well-designed object they
should be compatible. If an object has a constructor
keyword arg and an attribute with the same name but
they mean different things, that object is confusing
to begin with.


More information about the Python-ideas mailing list