[Python-ideas] Fwd: Consider allowing the use of abstractmethod without metaclasses
Victor Stinner
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 [1] and it overrides isinstance and
issubclass
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
issue?
Someone already wrote WeakrefSet, a PR is waiting for our review!
Victor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20170720/7f03a2cd/attachment.html>
More information about the Python-ideas
mailing list