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

_PyFunction_FromConstructor doesn't support closures #92173

Closed
Assignees
larryhastings
Labels
type-bugAn unexpected behavior, bug, or error
@larryhastings

Description

@larryhastings

Bug report

_PyFunction_FromConstructor creates aPyFunctionObject, populating its fields by pulling them from aPyFrameConstructor object. But it ignores thefc_closure field, which means it always creates a function that has no closure. Creating functions with closures is a totally legitimate use case and this is just a bug.

Your environment

  • CPython versions tested on: main
  • Operating system and architecture: linux

Metadata

Metadata

Assignees

Labels

type-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