Browse Source
bpo-36917: Add default implementation of ast.NodeVisitor.visit_Constant(). (GH-15490)
bpo-36917: Add default implementation of ast.NodeVisitor.visit_Constant(). (GH-15490)
It emits a deprecation warning and calls corresponding method visit_Num(), visit_Str(), etc.pull/15510/head
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 99 additions and 0 deletions
-
7Doc/library/ast.rst
-
7Doc/whatsnew/3.8.rst
-
31Lib/ast.py
-
51Lib/test/test_ast.py
-
3Misc/NEWS.d/next/Library/2019-08-25-14-56-42.bpo-36917.GBxdw2.rst
@ -0,0 +1,3 @@ |
|||
Add default implementation of the :meth:`ast.NodeVisitor.visit_Constant` |
|||
method which emits a deprecation warning and calls corresponding methody |
|||
``visit_Num()``, ``visit_Str()``, etc. |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue