5 ms·
Yes, Schematics is impressive. Thank you, I added it to my list of Python OOP extensions [1]. I wonder why you need to supply a dictionary to the object instead
by asciihacker 10y ago
Yes, Schematics is impressive. Thank you, I added it to my list of Python OOP extensions [1]. I wonder why you need to supply a dictionary to the object instead of keyword pairs.
[1] https://github.com/metaperl/python-oop https://github.com/metaperl/python-oop
- BerislavLopac 10y ago> I wonder why you need to supply a dictionary to the object instead of keyword pairs. My understanding is that the main reason is to make constructors more flexible, with arguments like _raw_data_, _trusted_data_ etc. But it is trivial to write a simple helper function that would accept keyword pairs and build a model instance.