mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
add a asdl bytes type, so Bytes.s be properly typechecked
This commit is contained in:
parent
18205baf25
commit
e249841903
5 changed files with 28 additions and 7 deletions
|
|
@ -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?
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue