[Python-Dev] PySet API (original) (raw)
Barry Warsaw barry at python.org
Sun Mar 26 00:05:05 CET 2006
- Previous message: [Python-Dev] PySet API
- Next message: [Python-Dev] PySet API
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 > PyNumberInPlaceAdd(s,t) vs PyObjectCallMethod(s, "update", "(O)", t).
Of course, that should have been s|=t and PyNumberInPlaceOr().
Heh, my point exactly. You wouldn't have gotten confused about PySet_Update(). :)
-Barry
-------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 309 bytes Desc: This is a digitally signed message part Url : http://mail.python.org/pipermail/python-dev/attachments/20060325/06c891a6/attachment-0001.pgp
- Previous message: [Python-Dev] PySet API
- Next message: [Python-Dev] PySet API
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]