title: Accessing items from a frozenset in python
body: <p>I have a frozenset given as <code>x = frozenset({"a":1,"b":2})</code>. I am not able to figure out a way to be able to access the items in the dict. Is there a way to unfreeze the frozenset? Given below is the error I get.</p>
  
  <pre><code>In [1]: x = frozenset({"a":1,"b":2})
  
  In [2]: x
  Out[2]: frozenset({'a', 'b'})
  
  In [3]: x["a"]
  ---------------------------------------------------------------------------
  TypeError                                 Traceback (most recent call last)
  &lt;ipython-input-3-c47cedd3f38d&gt; in &lt;module&gt;()
  ----&gt; 1 x["a"]
  
  TypeError: 'frozenset' object has no attribute '__getitem__'
  </code></pre>
  
  <p>Any help greatly appreciated.</p>