[docs] [issue16304] re: Match Objects always have a boolean value of True

Vladimir Rutsky report at bugs.python.org
Tue Oct 23 13:59:09 CEST 2012


New submission from Vladimir Rutsky:

re module documentation says:

 Match Objects always have a boolean value of :const:`True`, so that you can test
   whether e.g. :func:`match` resulted in a match with a simple if statement.

which is confusing - matched objects have boolean value True, doesn't matched - False.

----------
assignee: docs at python
components: Documentation
messages: 173595
nosy: docs at python, vrutsky
priority: normal
severity: normal
status: open
title: re: Match Objects always have a boolean value of  True
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16304>
_______________________________________


More information about the docs mailing list