On 8/18/2010 11:24 AM, ernest wrote:
Hi,

In this code:

if set(a).union(b) == set(a): pass

Does Python compute set(a) twice?

   CPython does.  Shed Skin might optimize.  Don't know
about Iron Python.

                                        John Nagle
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to