[IronPython] [python] IronPython 2 & Calltarget0

Michael Foord fuzzyman at voidspace.org.uk
Sat Oct 6 20:22:10 CEST 2007


Michael Foord wrote:
> Hello all,
>
> I'm sure this question has been answered before - but I'm afraid I can't 
> find it.
>
> In IronPython 2, what (or more importantly where...) is the equivalent 
> of CallTarget0 ?
>   

Don't worry - I found it in Microsoft.Scripting.

For reference, a 'cross version' way of importing CallTarget0 is

try:
    from IronPython.Runtime.Calls import CallTarget0
except ImportError:
    from Microsoft.Scripting import CallTarget0

All the best,

Michael
http://www.manning.com/foord

> Michael Foord
> http://www.manning.com
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
>   




More information about the Ironpython-users mailing list