On Tue, 2006-03-21 at 22:01 -0500, Raymond Hettinger wrote:
> [Me]
> >  There is a semantic difference between
> > code like s+=t and s.update(t).  The former only works when t is a set
> > and the latter works for any iterable.  When the C code corresponds to
> > the Python code, that knowledge is kept intact and there is no confusion 
> > between
> > PyNumber_InPlaceAdd(s,t) vs PyObject_CallMethod(s, "update", "(O)", t).
> 
> Of course, that should have been s|=t and PyNumber_InPlaceOr().

Heh, my point exactly.  You wouldn't have gotten confused about
PySet_Update(). :)

-Barry

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to