Commit c62148d0 authored by Stefan Behnel's avatar Stefan Behnel

move NULL out of the way in .py compilation

parent b96728fc
......@@ -615,7 +615,7 @@ def p_atom(s):
return ExprNodes.BoolNode(pos, value=True)
elif name == "False":
return ExprNodes.BoolNode(pos, value=False)
elif name == "NULL":
elif name == "NULL" and not s.in_python_file:
return ExprNodes.NullNode(pos)
else:
return p_name(s, name)
......
import cython
NULL = 5
_NULL = NULL
def test_sizeof():
"""
>>> test_sizeof()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment