In what version of Python was set initialisation syntax added
<p>I only just noticed this feature today! </p>

<pre><code>s={1,2,3} #Set initialisation
t={x for x in s if x!=3} #Set comprehension
t=={1,2}
</code></pre>

<p>What version is it in? I also noticed that it has set comprehension. Was this added in the same version?</p>

<p><strong>Resources</strong></p>

<ul>
<li><a href="http://docs.python.org/library/stdtypes.html#set-types-set-frozenset" rel="nofollow">Sets in Python 2.4 Docs</a></li>
<li><a href="http://docs.python.org/dev/3.0/whatsnew/3.0.html" rel="nofollow">What's new in Python 3.0</a></li>
</ul>
