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 | r.david.murray |
|---|---|
| Recipients | Eric Lafontaine, christian.heimes, docs@python, ezio.melotti, mark.dickinson, nparikh, r.david.murray, vstinner |
| Date | 2017年02月08日.02:10:39 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1486519839.55.0.751174767562.issue16011@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
>>> bool(())
False
>>> bool([])
False
>>> bool('')
False
What you want to say is that 'in' coerces the result returned by __contains__ to a boolean value. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2017年02月08日 02:10:39 | r.david.murray | set | recipients: + r.david.murray, mark.dickinson, vstinner, christian.heimes, ezio.melotti, docs@python, nparikh, Eric Lafontaine |
| 2017年02月08日 02:10:39 | r.david.murray | set | messageid: <1486519839.55.0.751174767562.issue16011@psf.upfronthosting.co.za> |
| 2017年02月08日 02:10:39 | r.david.murray | link | issue16011 messages |
| 2017年02月08日 02:10:39 | r.david.murray | create | |