Message150309
| 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: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 |
|