Skip to content

Commit 4304678

Browse files
authored
fix #1013
1 parent a753525 commit 4304678

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

mathics/core/expression.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ def __str__(self) -> str:
8787

8888
def from_python(arg):
8989
number_type = get_type(arg)
90+
if arg is None:
91+
return Symbol('Null')
9092
if isinstance(arg, int) or number_type == 'z':
9193
return Integer(arg)
9294
elif isinstance(arg, float) or number_type == 'f':

0 commit comments

Comments
 (0)