From 3f22811fef73aec848d961593d95fa877f77ecbf Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Thu, 27 Sep 2018 17:42:37 +0300 Subject: bpo-32892: Use ast.Constant instead of specific constant AST types. (GH-9445) --- Parser/Python.asdl | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'Parser/Python.asdl') diff --git a/Parser/Python.asdl b/Parser/Python.asdl index f470ad13b6..eee982be1c 100644 --- a/Parser/Python.asdl +++ b/Parser/Python.asdl @@ -1,8 +1,5 @@ --- ASDL's 7 builtin types are: --- identifier, int, string, bytes, object, singleton, constant --- --- singleton: None, True or False --- constant can be None, whereas None means "no value" for object. +-- ASDL's 5 builtin types are: +-- identifier, int, string, object, constant module Python { @@ -75,13 +72,8 @@ module Python -- x < 4 < 3 and (x < 4) < 3 | Compare(expr left, cmpop* ops, expr* comparators) | Call(expr func, expr* args, keyword* keywords) - | Num(object n) -- a number as a PyObject. - | Str(string s) -- need to specify raw, unicode, etc? | FormattedValue(expr value, int? conversion, expr? format_spec) | JoinedStr(expr* values) - | Bytes(bytes s) - | NameConstant(singleton value) - | Ellipsis | Constant(constant value) -- the following expression can appear in assignment context -- cgit v1.2.1