<span id="ctl00_ctl00_Content_TabContentPanel_Content_DescriptionLabel">For ipy 2.0 alpha 5, try this:<br>h = 'hello'<br>b = 'bye'<br>print h if h=='hello' else b<br>print h if h=="hello" else "bye"
<br><br>Results are:<br>>>> h = 'hello'<br>>>> b = 'bye'<br>>>> print h if h=='hello' else b<br>hello<br>>>> print h if h=="hello" else "bye"
<br>Traceback (most recent call last):<br>ValueError: Types must match<br>Parameter name: ifTrue<br><br>In Cpython 2.5 and ipy 2.0 a4 I don't have this problem.<br>Regards.</span> <br><a href="mailto:users@lists.ironpython.com">
</a>