For ipy 2.0 alpha 5, try this: h = 'hello' b = 'bye' print h if h=='hello' else b print h if h=="hello" else "bye"
Results are: >>> h = 'hello' >>> b = 'bye' >>> print h if h=='hello' else b hello >>> print h if h=="hello" else "bye" Traceback (most recent call last): ValueError: Types must match Parameter name: ifTrue In Cpython 2.5 and ipy 2.0 a4 I don't have this problem. Regards. <[email protected]>
_______________________________________________ Users mailing list [email protected] http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
