Message150309
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. |
|
Date |
User |
Action |
Args |
2011-12-28 18:08:11 | georg.brandl | set | recipients:
+ georg.brandl, pitrou, benjamin.peterson, JBernardo |
2011-12-28 18:08:11 | georg.brandl | set | messageid: <1325095691.31.0.470802724787.issue13667@psf.upfronthosting.co.za> |
2011-12-28 18:08:10 | georg.brandl | link | issue13667 messages |
2011-12-28 18:08:10 | georg.brandl | create | |
|