ast.TypeAlias
in Python versions 3.12, 3.13, and planned 3.15.
#2012
Replies: 2 comments 5 replies
-
This is related to some changes I made in the AST module to reduce the chance of silently getting nonexistent attributes. I don't entirely understand what you are proposing, but using keyword arguments and passing all arguments will be safe in all versions. |
Beta Was this translation helpful? Give feedback.
-
In the long run, it would be less expensive to search GitHub and other code repositories for position-only This isn't as consequential as IBM and MicroSoft (capitalization intentional) deciding to not introduce a breaking change in PC-DOS by using forward slash to separate directories, but it is certainly the same type of issue. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
This topic is an imperfect fit for this forum, but I don't know where else to ask.
3.12
3.13
The meaning(s)?
type_params
defaults to[]
, butvalue
doesn't have a default value.value
will raise an exception instead of throwing a warning, which no one reads because nearly everyone reflexively silences all warnings.Implied
So, we knowingly create complexity for the rest of time?
The plan, for "compatibility" allllll the way back to Python 3.12 from Python 3.13
Alternatively, feel some pain between 3.12 and 3.13, but have simplicity after that
Analysis
Scope
Time
Cost allocation
Summary
Beta Was this translation helpful? Give feedback.
All reactions