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 stricter thandict about what constitutes a match #120906

Closed
Assignees
markshannongaogaotiantian
Labels
3.13bugs and security fixes3.14bugs and security fixesrelease-blockertype-bugAn unexpected behavior, bug, or error
@da-woods

Description

@da-woods

Bug report

Bug description:

importinspectclassMyString(str):passdeff():a=1locals=inspect.currentframe().f_localsprint(MyString("a")inlocals)f()

In Python 3.12 and below this printsTrue. In Python 3.13 this printFalse. I think it comes down to the check for exact unicode:

if (PyUnicode_CheckExact(key)) {

The change in behaviour isn't a huge problem so if it's intended then I won't spend waste any time complaining about it, but I do think it's worth confirming that it is intended/desired.

CPython versions tested on:

3.13

Operating systems tested on:

Linux

Linked PRs

Metadata

Metadata

Labels

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

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp