This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author georg.brandl
Recipients JBernardo, benjamin.peterson, georg.brandl, pitrou
Date 2011-12-28.18:08:10
SpamBayes Score 3.5309077e-07
Marked as misclassified No
Message-id <1325095691.31.0.470802724787.issue13667@psf.upfronthosting.co.za>
In-reply-to
Content
It's defined that way because it's a slot returning a bool, so it doesn't need to return anything except for 0 or 1.

Changing this to return a PyObject would mean that every extension module (i.e. module written in C) that defines a custom __contains__ would need to be adapted.  That is the non-trivial implementation that Benjamin was talking about.
History
Date User Action Args
2011-12-28 18:08:11georg.brandlsetrecipients: + georg.brandl, pitrou, benjamin.peterson, JBernardo
2011-12-28 18:08:11georg.brandlsetmessageid: <1325095691.31.0.470802724787.issue13667@psf.upfronthosting.co.za>
2011-12-28 18:08:10georg.brandllinkissue13667 messages
2011-12-28 18:08:10georg.brandlcreate