Re:ORMs Are Backwards
by yorwba on Wednesday September 04, 2019 @09:32AM
(#20877018)
There is no such distinction between compile time and run time in Python; everything can be done dynamically. Want to use a class with slots computed at runtime? No problem:
Of course there are many improvements that could be made to this approach (e.g. not creating a new class for each instance, or setting the __name__ to something meaningful) but I hope it shows that dynamic typing and robust error checking aren't contradictory.
[ Parent
| on HN ]
There are no comments on this comment yet.