Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32.1k
Closed
Description
Bug report
Bug description:
FrameLocalsProxy
should be a mapping. I.e. it should subclasscollections.abc.Mapping
and match{}
in a match statement.
fromcollections.abcimportMappingimportsysdeff():returnsys._getframe().f_localsproxy=f()assert(instance(proxy,Mapping))matchproxy:case {}:kind="mapping"case _:kind="other"assert(kind=="mapping")
CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux