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

Fix __annotations__ getters and setters in type and module #106719

Closed
Labels
3.11only security fixes3.12only security fixes3.13bugs and security fixestype-bugAn unexpected behavior, bug, or error
@serhiy-storchaka

Description

@serhiy-storchaka

There are several issues in the code of__annotations__ getters and setters intype andmodule types.

  • PyDict_Contains() returns -1 on error. The code interprets it as a positive answer.
  • CallingPyDict_Contains() is not needed in all these cases at first place. Just try to get or delete an attribute and analyze the result.
  • All errors raised when accessingmodule.__dict__ (including MemoryError and KeyboardInterrupt) are replaced with a TypeError.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.11only security fixes3.12only security fixes3.13bugs 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