Message119160
Please read the docs here: http://docs.python.org/py3k/reference/expressions#boolean-operations
This is the last sentence in the '5.10. Boolean operations' text):
([...] Because not has to >>>invent<<< a value anyway, it does not bother to return a value of the same type as its argument, so e.g., not 'foo' yields False, not ''.)
Fix to:
([...] Because not has to >>>invert<<< a value anyway, it does not bother to return a value of the same type as its argument, so e.g., not 'foo' yields False, not ''.) |
|
Date |
User |
Action |
Args |
2010-10-19 19:19:53 | Retro | set | recipients:
+ Retro, docs@python |
2010-10-19 19:19:52 | Retro | set | messageid: <1287515992.96.0.884562024831.issue10147@psf.upfronthosting.co.za> |
2010-10-19 19:19:46 | Retro | link | issue10147 messages |
2010-10-19 19:19:46 | Retro | create | |
|