◐ Shell
clean mode source ↗

bpo-43988: Use check disallow instantiation helper by erlend-aasland · Pull Request #26392 · python/cpython

Erlend E. Aasland added 2 commits

May 27, 2021 00:40

@erlend-aasland erlend-aasland changed the title bpo-43988: Use check disallow instantiation bpo-43988: Use check disallow instantiation helper

May 26, 2021

Erlend E. Aasland added 3 commits

May 27, 2021 00:50

vstinner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest to avoid tp = ... and then use tp, since "tp" name doesn't help: use directly "...". I wrote some examples.

@vstinner

Merged, thanks. This helper makes me more confident that the test actually checks that the type is immutable.

@erlend-aasland

Merged, thanks. This helper makes me more confident that the test actually checks that the type is immutable.

Great, thanks for reviewing and improving the PR!

erlend-aasland pushed a commit to erlend-aasland/cpython that referenced this pull request

Jun 23, 2021