A RetroSearch Logo

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

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2000-February/002013.html below:

[Python-Dev] __contains__ hook

[Python-Dev] __contains__ hook [Python-Dev] __contains__ hookFred L. Drake, Jr. fdrake@acm.org
Thu, 3 Feb 2000 14:19:34 -0500 (EST)
Guido van Rossum writes:
 > But they won't have to -- all the other pointers in the as_sequence
 > struct can be NULL.  (This used to be not the case, but I've finally
 > given in and added NULL tests everywhere -- it was a recurring
 > complaint from extension writers.)

  Good enough; sounds like the thing to do is to declare a set to be
an sequence that supports sq_contains, sets a flag in tp_flag, and
doesn't support the irrelevant slots in the sequence structure.


  -Fred

--
Fred L. Drake, Jr.	  <fdrake at acm.org>
Corporation for National Research Initiatives



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