GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — gh-111922: Allow Using a Minimal Proxy for TracebackException.exc_type by ericsnowcurrently · Pull Request #112324 · python/cpython Conversation
|
| self.addCleanup(sys.path.pop) | ||
|
|
||
| if not mod_name: | ||
| mod_name = ''.join(random.choices(string.ascii_letters, k=16)) |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Maybe assert that mod_name is not in sys.modules before we add it?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| def __repr__(self) -> str: | ||
| raise Exception("Unrepresentable") | ||
|
|
||
|
|
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| raise ValueError(f'unsupported exc_type {exc_type!r}') | ||
|
|
||
|
|
||
| def _match_class(exc_type, *expected): |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
nit: I'd pass expected as a tuple (single arg), same way that types are passed to isinstance, etc.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I'm closing this in favor of gh-112333. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.