This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ethan.furman
Recipients barry, ethan.furman, gvanrossum, methane, rhettinger, serhiy.storchaka, vstinner
Date 2017-10-05.04:44:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
INADA Naoki said:
> But while new instance is not created each time, 4 Python method
> calls (e,g.  IntFlag.__and__() -> IntFlag.__new__()
> -> IntFlag._missing_() -> IntFlag._create_pseudo_member_())
> are much slower than int & int.

Only the first two calls always happen -- the last two calls only happen for numbers that haven't been seen yet.  And yes, two Python level calls are much slower than an int & int.
Date User Action Args
2017-10-05 04:44:41ethan.furmansetrecipients: + ethan.furman, gvanrossum, barry, rhettinger, vstinner, methane, serhiy.storchaka
2017-10-05 04:44:41ethan.furmansetmessageid: <>
2017-10-05 04:44:41ethan.furmanlinkissue31671 messages
2017-10-05 04:44:41ethan.furmancreate