[issue22843] doc error: 6.2.4. Match Objects

2014-11-14 Thread Clayton Kirkwood
Clayton Kirkwood added the comment: Cool >-Original Message- >From: Terry J. Reedy [mailto:rep...@bugs.python.org] >Sent: Friday, November 14, 2014 1:04 PM >To: c...@godblessthe.us >Subject: [issue22843] doc error: 6.2.4. Match Objects > > >Terry J. Reedy added

[issue22843] doc error: 6.2.4. Match Objects

2014-11-10 Thread Clayton Kirkwood
New submission from Clayton Kirkwood: Documentation says: > Match objects always have a boolean value of True. Since match() and > search() return None when there is no match, you can test whether > there was a match with a simple if statement: > > match = re.search(pattern, str