Uh oh!
There was an error while loading. Please reload this page.
bpo-43988: Use check disallow instantiation helper - #26392
Conversation
vstinner
left a comment
There was a problem hiding this comment.
I suggest to avoid tp = ... and then use tp, since "tp" name doesn't help: use directly "...". I wrote some examples.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
vstinner
commented
May 27, 2021
Merged, thanks. This helper makes me more confident that the test actually checks that the type is immutable. |
erlend-aasland
commented
May 27, 2021
Great, thanks for reviewing and improving the PR! |
https://bugs.python.org/issue43988