Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:
Oh, you are right. I misunderstood the original issue and thought that the code first checks PyFloat_Check() or PyFloat_CheckExact(). If float.__ceil__ will be executed it will add significant overhead for creating and executing the method object. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue38629> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com