Uh oh!
There was an error while loading. Please reload this page.
gh-106078: Suppress the warning caused by multi-phase initialization of decimal - #107524
Conversation
CharlieZhao95
commented
Aug 1, 2023
Maybe we can skip news for this PR. |
It looks like the global variable check is failing, the tool cannot ignore static variables inside functions. |
Uh oh!
There was an error while loading. Please reload this page.
Eclips4
left a comment
There was a problem hiding this comment.
I've tested it locally, and it works. Multiple imports of decimal doesn't make any warnings anymore.
LGTM.
The warning that's being suppressed here was recently brought up again in #110266 |
erlend-aasland
commented
Oct 3, 2023
See also the discussion about a global init/exit API for extension modules. |
bedevere-bot
commented
Oct 7, 2023
|
This warnning is caused by the multi-phase initialization of
decimalmodule. Whendecimalmodule is repeatedly imported,decimal_execwill be executed multiple times and this warning will be raised.See #107287 (comment) for details.
_decimalextension module #106078