summaryrefslogtreecommitdiffstats
path: root/Parser/Python.asdl
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2006-09-06 07:06:08 (GMT)
committerGeorg Brandl <georg@python.org>2006-09-06 07:06:08 (GMT)
commit52318d6215f9f9626d38a9b81b52d411dbbdb36a (patch)
tree72563f6321f9265fb9d77702ee729e68048bdd07 /Parser/Python.asdl
parent7cae87ca7b0a3a7ce497cbd335c8ec82fe680476 (diff)
downloadcpython-52318d6215f9f9626d38a9b81b52d411dbbdb36a.zip
cpython-52318d6215f9f9626d38a9b81b52d411dbbdb36a.tar.gz
cpython-52318d6215f9f9626d38a9b81b52d411dbbdb36a.tar.bz2
Patch #1550786: ellipsis literal.
Diffstat (limited to 'Parser/Python.asdl')
-rw-r--r--Parser/Python.asdl3
1 files changed, 2 insertions, 1 deletions
diff --git a/Parser/Python.asdl b/Parser/Python.asdl
index 27f65b4..b62197e 100644
--- a/Parser/Python.asdl
+++ b/Parser/Python.asdl
@@ -63,6 +63,7 @@ module Python version "$Revision$"
expr? starargs, expr? kwargs)
| Num(object n) -- a number as a PyObject.
| Str(string s) -- need to specify raw, unicode, etc?
+ | Ellipsis
-- other literals? bools?
-- the following expression can appear in assignment context
@@ -77,7 +78,7 @@ module Python version "$Revision$"
expr_context = Load | Store | Del | AugLoad | AugStore | Param
- slice = Ellipsis | Slice(expr? lower, expr? upper, expr? step)
+ slice = Slice(expr? lower, expr? upper, expr? step)
| ExtSlice(slice* dims)
| Index(expr value)