Dyalog / pynapl

Dyalog APL ←→ Python interface
MIT License
74 stars 10 forks source link

"round trip" error #19

Closed justin2004 closed 2 years ago

justin2004 commented 2 years ago

this is in the README.md:

>>> apl.eval("'2+2' py.Eval ⍬") # round trip
4

but when I run that:

>>> apl.eval('2+2' py.Eval ⍬)
  File "<stdin>", line 1
    apl.eval('2+2' py.Eval ⍬)
                   ^
SyntaxError: invalid syntax

although this works

>>> apl.eval('2+2')
4

is the README out of date?

justin2004 commented 2 years ago

ops, i see what i've done