Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
On the main branch, on both Windows and Linux, this crashes:
classThing:passthing=Thing()foriinrange(10):print(i)try:str.upper(thing)exceptTypeError:passprint("ok")
Other methods likestr.split,bytes.split, andlist.sort fail similarly. I caught this by running
./python -m test test_descr -m test_proxy_call -R3:20Looking through stack traces, it appears the failure is on theres = cfunc(...) call inPRECALL_METHOD_DESCRIPTOR_FAST_WITH_KEYWORDS instruction. It looks to be a 3.11-only bug.