Message173606
Since the quoted paragraph is distant from where the information about the ``None`` return is documented, the wording of the quoted paragraph can be improved to make this clearer:
Match Objects always have a boolean value of ``True``. Since ``None`` (which has a boolean value of ``False``) is returned when there is no match, you can test whether there was a match with a simple ``if`` statement. |
|
Date |
User |
Action |
Args |
2012-10-23 12:41:10 | r.david.murray | set | recipients:
+ r.david.murray, docs@python, vrutsky, serhiy.storchaka |
2012-10-23 12:41:10 | r.david.murray | set | messageid: <1350996070.81.0.742101014814.issue16304@psf.upfronthosting.co.za> |
2012-10-23 12:41:10 | r.david.murray | link | issue16304 messages |
2012-10-23 12:41:10 | r.david.murray | create | |
|