Message398830
You cannot expect that running code under debugger does not have any effect. Otherwise there would not be any meaning in debugger. Running code under debugger has some side effects, and setting locals __return__ and __exception__ is one of them. If it exposes bugs in user code -- well, it is a purpose of debugger.
I think that there are two options for this issue.
1. Add a type check for locals in the frame constructor (and maybe at higher levels).
2. Close it as "not a bug". Using functions outside of documented scope has undefined behavior. Python usually does not check types of arguments. If it works -- it works, if not -- blame on you. |
|
Date |
User |
Action |
Args |
2021-08-03 14:46:56 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, ppperry, xtreak, scotchka, iritkatriel |
2021-08-03 14:46:56 | serhiy.storchaka | set | messageid: <1628002016.86.0.302153614282.issue34782@roundup.psfhosted.org> |
2021-08-03 14:46:56 | serhiy.storchaka | link | issue34782 messages |
2021-08-03 14:46:56 | serhiy.storchaka | create | |
|