You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove the following classes. They were all deprecated since Python 3.8, and
have emitted deprecation warnings since Python 3.12:
ast.Bytes
ast.Ellipsis
ast.NameConstant
ast.Num
ast.Str
Use ast.Constant instead. As a consequence of these removals, user-defined
visit_Num, visit_Str, visit_Bytes, visit_NameConstant and visit_Ellipsis
methods on custom ast.NodeVisitor subclasses will no longer be called when the
NodeVisitor subclass is visiting an AST. Define a visit_Constant method
instead.
But time moves fast, so it would be good to be on top of this soonish ...
That's correct. I guess from the user point of view there is time, but from the CPython development point of view this causes some issues. Chameleon is used in pyperformance (https://github.com/python/pyperformance/tree/main/pyperformance/data-files/benchmarks/bm_chameleon) and currently it is failing. main branch is mainly where we track our performances and it would be good to have it working again :)
I'll be monitoring this issue and as soon as there is a new release with the fix, I'll update pyperformance.
According to: https://docs.python.org/dev/whatsnew/3.14.html#id2
Remove the following classes. They were all deprecated since Python 3.8, and
have emitted deprecation warnings since Python 3.12:
ast.Bytes
ast.Ellipsis
ast.NameConstant
ast.Num
ast.Str
Use ast.Constant instead. As a consequence of these removals, user-defined
visit_Num, visit_Str, visit_Bytes, visit_NameConstant and visit_Ellipsis
methods on custom ast.NodeVisitor subclasses will no longer be called when the
NodeVisitor subclass is visiting an AST. Define a visit_Constant method
instead.
https://bugzilla.redhat.com/show_bug.cgi?id=2322715
The text was updated successfully, but these errors were encountered: