def Class(*args, **kwargs):
return _Class(*args, **kwargs)
This is true for Event, RLock, and others.
Why do this? It seems to violate the rule of least astonishment
(isinstance(Event(), Event) raises an exception). I assume there must be
some trade-off that the designer intended to achieve. So, what is that
trade-off and when should I follow this in my code?
Aim - Zac256FL
-------------- next part --------------
An HTML attachment was scrubbed...