Closed martin-henz closed 5 months ago
Current status:
null = 1
which is currently not allowed.
resolved
The result of a telegram discussion is this: We should represent the empty list by None in Python. Python's None will be represented by the JavaScript literal null.
not resolved: None is still mapped to undefined.
The identifier null in Python should be allowed in Python §1. For the estree to represent a valid JavaScript program, we should add a $ in front of null. An unparse function will strip away the $ before any etree is presented to the user as a Python program.
resolved
That's not right: Syntactically, null is an identifier in Python. So it should be allowed anywhere where we can use identifiers:
which is currently not allowed.
The result of a telegram discussion is this: We should represent the empty list by
None
in Python. Python'sNone
will be represented by the JavaScript literalnull
.The identifier
null
in Python should be allowed in Python §1. For the estree to represent a valid JavaScript program, we should add a$
in front ofnull
. An unparse function will strip away the$
before any etree is presented to the user as a Python program.