Most voted "metaclass" questions
3 questions
Sort by count of
-
11
votes2
answers1149
viewsWhat are the metaclasses?
Some modern programming languages such as Ruby implement the so-called "Metaclasses". What is this? What good is? How and when to use?
-
3
votes1
answer122
viewsNeed to use @classmethod in __new__
I was reading about __new__ in the Python documentation and after search here on the site I saw some examples of implementation and noticed that the signature of the method is: def __new__(cls,…
python python-3.x characteristic-language objects metaclassasked 5 years, 2 months ago fernandosavio 9,013 -
0
votes1
answer53
viewsDescriptor with meta class vs traditional
I’ve been watching the videos (example) by Luciano Ramalho on Descriptors with metaclass. I wanted to know the advantage of this model in relation to the more traditional implementation of…