[IronPython] unexpected token print at <string>:1

JoeSox joesox at gmail.com
Fri Mar 3 22:07:14 CET 2006


Can someone explain why I get this error when calling:

....
tempobject = (object)global_eng.Evaluate("print \"hello\"");
....

---
>>>print "hello"
 unexpected token print at <string>:1
----

I've tried stepping thru:

public static object eval(ICallerContext context, string expression) {
            return eval(context, expression, globals(context));


and I just don't understand why it doesn't return "hello"

Thanks.
--
Joseph



More information about the Ironpython-users mailing list