Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

FrameLocalsProxy is not a mapping #120097

Closed
Closed
Assignees
markshannon
Labels
3.13bugs and security fixes3.14bugs and security fixestype-bugAn unexpected behavior, bug, or error
@markshannon

Description

@markshannon

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

Linked PRs

Metadata

Metadata

Assignees

Labels

3.13bugs and security fixes3.14bugs and security fixestype-bugAn unexpected behavior, bug, or error

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp