On Jan 15, 11:51 am, "Neil Cerutti" <[EMAIL PROTECTED]> wrote:
>
> So this is a bug in set_update or in set_ior. They can't both be
> right.
>

It's not a bug.

"Note, the non-operator versions of union(), intersection(),
difference(), and symmetric_difference(), issubset(), and issuperset()
methods will accept any iterable as an argument. In contrast, their
operator based counterparts require their arguments to be sets. This
precludes error-prone constructions like set('abc') & 'cbs' in favor
of the more readable set('abc').intersection('cbs')."
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to