Mercurial > cpython-lru_cache-weakref
diff Parser/Python.asdl @ 71792:f578ca44193d
add a asdl bytes type, so Bytes.s be properly typechecked
| author | Benjamin Peterson <benjamin@python.org> |
|---|---|
| date | Tue, 09 Aug 2011 16:08:39 -0500 |
| parents | f8199dea7ed3 |
| children | d64ac9ab4cd0 |
line wrap: on
line diff
--- a/Parser/Python.asdl Tue Aug 09 18:09:21 2011 +0200 +++ b/Parser/Python.asdl Tue Aug 09 16:08:39 2011 -0500 @@ -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 @@ 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?
