|
|
|
|
|
by radiowave
4418 days ago
|
|
I'm not disputing how or why it works, just saying that I think it is poor design, as it causes a statement that looks like variable assignment to actually produce overriding. I think this violates the principle of least astonishment, and I suspect there is no good reason (beyond implementation simplicity) why Python class variables do behave this way. (edit: replaced "an expression" with "a statement") |
|