gh-121249: deprecate support for complex types in the struct module#149346
gh-121249: deprecate support for complex types in the struct module#149346skirpichev wants to merge 1 commit intopython:mainfrom
Conversation
Documentation build overview
8 files changed ·
|
| .. versionchanged:: 3.14 | ||
| Added support for the ``'F'`` and ``'D'`` formats. | ||
|
|
||
| .. deprecated-removed:: 3.15 3.17 |
There was a problem hiding this comment.
Any reason to rush this and not use the recommended five years?
https://peps.python.org/pep-0387/#making-incompatible-changes
There was a problem hiding this comment.
Yes, this was intentional.
I see some reasons:
- This was introduced recently, I don't expect much breakage.
- This is a minor feature.
- I hope, it might be addressed by new PEP, that modernize the struct module and/or finish incomplete proposals of the PEP 3118.
- If no PEP will come - probably it's not that important ;-)
As an alternative, we could consider part of the Victor's PR #148676: use Zf/Zd codes per default and add F/D as aliases, for backward compatibility. But IMO, PEP is better.
|
What is the reason for deprecation? Also, why is it linked to an issue closed long time ago? |
It's an alternative to #148676, see python/steering-council#345 (comment) There are 3 PRs:
Reopened, thanks. |
|
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. |
Uh oh!
There was an error while loading. Please reload this page.