summaryrefslogtreecommitdiffstats
path: root/Parser/Python.asdl
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2011-08-09 21:08:39 (GMT)
committerBenjamin Peterson <benjamin@python.org>2011-08-09 21:08:39 (GMT)
commite2498419034eade424fa744e1505980e64ba759b (patch)
tree22fe40b438aebff64ba9ab784a79cebce252cd23 /Parser/Python.asdl
parent18205baf251495b5a54b08c1f9b0e1763eb27aa1 (diff)
downloadcpython-e2498419034eade424fa744e1505980e64ba759b.zip
cpython-e2498419034eade424fa744e1505980e64ba759b.tar.gz
cpython-e2498419034eade424fa744e1505980e64ba759b.tar.bz2
add a asdl bytes type, so Bytes.s be properly typechecked
Diffstat (limited to 'Parser/Python.asdl')
-rw-r--r--Parser/Python.asdl4
1 files changed, 2 insertions, 2 deletions
diff --git a/Parser/Python.asdl b/Parser/Python.asdl
index dc322dc..6955199 100644
--- a/Parser/Python.asdl
+++ b/Parser/Python.asdl
@@ -1,4 +1,4 @@
--- ASDL's four builtin types are identifier, int, string, object
+-- ASDL's five builtin types are identifier, int, string, bytes, object
module Python
{
@@ -67,7 +67,7 @@ module Python
expr? starargs, expr? kwargs)
| Num(object n) -- a number as a PyObject.
| Str(string s) -- need to specify raw, unicode, etc?
- | Bytes(string s)
+ | Bytes(bytes s)
| Ellipsis
-- other literals? bools?