[Python-ideas] Fwd: Consider allowing the use of abstractmethod without metaclasses
victor.stinner at gmail.com
Thu Jul 20 08:23:29 EDT 2017
Le 20 juil. 2017 3:49 AM, "INADA Naoki" <songofacandy at gmail.com> a écrit :
> I'm +1 with your idea in performance point of view.
But ABC is too heavy to use only for checking abstract methods.
It uses three inefficient WeakSet  and it overrides isinstance and
with slow Python implementation.
I don't think that we can get ride of abc from the io and importlib. They
are here to stay. I hear your performance analysis.
Why not making abc faster instead of trying to workaround abc for perf
Someone already wrote WeakrefSet, a PR is waiting for our review!
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-ideas