[issue44050] Exceptions in a subinterpreter are changed by another subinterpreter

2021-05-05 Thread Trygve Aaberge
New submission from Trygve Aaberge : This issue is a regression in Python 3.9. It was recently fixed in main/3.10, but I'm opening this issue to request that it is fixed in 3.9 as well since it breaks certain Python scripts running in WeeChat. I have a C application which is using the P

[issue44050] Exceptions in a subinterpreter are changed by another subinterpreter

2021-05-05 Thread Trygve Aaberge
Trygve Aaberge added the comment: Here is the Python script that the C program to reproduce the issue runs. -- Added file: https://bugs.python.org/file50016/subinterpreter_ssl_issue.py ___ Python tracker <https://bugs.python.org/issue44

[issue44050] Exceptions in a subinterpreter are changed by another subinterpreter

2021-05-05 Thread Trygve Aaberge
Trygve Aaberge added the comment: And here are the bug reports for two Python scripts that are affected by this issue: https://github.com/wee-slack/wee-slack/issues/812 https://github.com/poljar/weechat-matrix/issues/248 -- ___ Python tracker

[issue44050] [subinterpreters] _PyImport_FixupExtensionObject() regression in Python 3.9

2021-05-25 Thread Trygve Aaberge
Trygve Aaberge added the comment: > The _PyImport_FixupExtensionObject() change impacts extensions using the > legacy API and so should not be used in subinterpreters. I'm not using that directly in my code, but I guess it's used indirectly? If it shouldn't be used, w

[issue44050] [subinterpreters] _PyImport_FixupExtensionObject() regression in Python 3.9

2021-08-04 Thread Trygve Aaberge
Trygve Aaberge added the comment: @jack__d: If you're just getting "no data" once and nothing else, the test isn't working correctly. You should get "no data" twice when it works correctly and the issue is fixed, or "unknown error" and some other inf