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

ctypes pointer set_type doesn't cache when setting _type_ #133290

Closed
Assignees
encukou
Labels
3.13bugs and security fixes3.14bugs and security fixesextension-modulesC modules in the Modules dirtype-bugAn unexpected behavior, bug, or error
@encukou

Description

@encukou

Bug report

In#114314 (3.13) I introduced a regression:set_type misusesPyType_GetDict by modifying it.

importctypesintptr=ctypes.POINTER(ctypes.c_int)print(intptr._type_)# uncomment to hide the issueprint(intptr._type_)intptr.set_type(ctypes.c_float)# a bad idea, but, it should set _type_print(intptr._type_)

Linked PRs

Metadata

Metadata

Assignees

Labels

3.13bugs and security fixes3.14bugs and security fixesextension-modulesC modules in the Modules dirtype-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