Skip to content

gh-121249: remove F/D type codes from table in the struct module#149346

Open
skirpichev wants to merge 8 commits intopython:mainfrom
skirpichev:struct-deprecate-complex
Open

gh-121249: remove F/D type codes from table in the struct module#149346
skirpichev wants to merge 8 commits intopython:mainfrom
skirpichev:struct-deprecate-complex

Conversation

@skirpichev
Copy link
Copy Markdown
Member

@skirpichev skirpichev commented May 4, 2026

@read-the-docs-community
Copy link
Copy Markdown

read-the-docs-community Bot commented May 4, 2026

Comment thread Doc/library/struct.rst Outdated
@serhiy-storchaka
Copy link
Copy Markdown
Member

What is the reason for deprecation? Also, why is it linked to an issue closed long time ago?

@skirpichev
Copy link
Copy Markdown
Member Author

What is the reason for deprecation?

It's an alternative to #148676, see python/steering-council#345 (comment)

There are 3 PRs:

Also, why is it linked to an issue closed long time ago?

Reopened, thanks.

@encukou
Copy link
Copy Markdown
Member

encukou commented May 4, 2026

I'm -1.

@hugovk any objections to deprecating in a later beta, rather than b1? That would mean we don't need to decide now.

@skirpichev skirpichev closed this May 4, 2026
@skirpichev skirpichev deleted the struct-deprecate-complex branch May 4, 2026 15:09
@skirpichev skirpichev restored the struct-deprecate-complex branch May 5, 2026 02:18
@skirpichev skirpichev reopened this May 5, 2026
@skirpichev skirpichev changed the title gh-121249: deprecate support for complex types in the struct module gh-121249: deprecate support for F/D type codes in the struct module May 5, 2026
@skirpichev skirpichev requested a review from vstinner May 5, 2026 02:41
@skirpichev
Copy link
Copy Markdown
Member Author

skirpichev commented May 5, 2026

I removed F/D types from the table and postponed removal to 3.20. I think it's now along line of using two-letters type codes in the array, ctypes and for memoryvieweverywhere.

CC @vstinner

Edit: Alternatively - we could just drop old type codes from the table (no deprecation).

@vstinner
Copy link
Copy Markdown
Member

vstinner commented May 6, 2026

It's too late to introduce a deprecation in Python 3.15. We can reconsider a deprecation in Python 3.16.

@skirpichev skirpichev changed the title gh-121249: deprecate support for F/D type codes in the struct module gh-121249: remove F/D type codes from table in the struct module May 7, 2026
@skirpichev
Copy link
Copy Markdown
Member Author

@vstinner, deprecation was reverted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review docs Documentation in the Doc dir skip news

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

5 participants