osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Question about implementing immutability


czw., 22 lis 2018 o 10:53 Thomas Jollans <tjol at tjol.eu> napisa?(a):
> If you're tempted to go down that route and can require Python 3.7, use
> dataclasses!

I'm aware of them, thanks. :) Dataclasses are great for certain use-cases;
I was just wondering how hard would it be to implement something
approximating generic solution for arbitrary user-defined classes.

Sincerely,
Iwo Herka