<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
					xmlns:content="http://purl.org/rss/1.0/modules/content/"
					xmlns:wfw="http://wellformedweb.org/CommentAPI/"
					xmlns:dc="http://purl.org/dc/elements/1.1/"
				  >
<channel>
<title>NEVERFEAR (Post Comments)</title>
<link>http://neverfear.org</link>
<description><![CDATA[NEVERFEAR.org weblog feed for post comments]]></description>
<image><title>NEVERFEAR (Post Comments)</title>
<link>http://neverfear.org</link>
<url>http://neverfear.org/favicon.ico</url>
</image>
<language>en-uk</language>
<pubDate>Mon, 06 Apr 2026 12:38:32 +0000</pubDate>
<item>
<title>Comment on Ternary operator in Python</title>
<link>http://neverfear.org/blog/view/134/Ternary_operator_in_Python/comments#comment_161</link>
<pubDate>Sat, 17 Jul 2010 01:40:51 +0000</pubDate>
<description><![CDATA[<p>Since Python 2.5 you can do ternary operations like so:</p>

<blockquote>
  <p>f() if h() else g()</p>
</blockquote>

<p><a href="http://docs.python.org/reference/expressions.html">http://docs.python.org/reference/expressions.html</a></p>

<p>Dive into Python also gives a good overview of solving it the long way:</p>

<p><a href="http://diveintopython.org/power_of_introspection/and_or.html">http://diveintopython.org/power_of_introspection/and_or.html</a></p>
]]></description>
<author>Mark</author>
<guid isPermaLink="true" >http://neverfear.org/blog/view/134/Ternary_operator_in_Python/comments#comment_161</guid>
</item>
</channel>
</rss>