A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2006-March/062738.html below:

[Python-Dev] PySet API

[Python-Dev] PySet API [Python-Dev] PySet APIRaymond Hettinger python at rcn.com
Wed Mar 22 04:01:39 CET 2006
[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().



Raymond
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4