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 ekorn
Recipients docs@python, ekorn
Date 2011-05-22.10:09:25
SpamBayes Score 0.00137402
Marked as misclassified No
Message-id <>
Combining multiple option flags to doctest.testmod(optionflags=...) requires the bitwise or operator |, not plain "or". I therefore suggest rewording "or-ing together individual option flags." to "or-ing together individual option flags, using the 'bitwise or' operator |.", perhaps with a link to


Doctest option flags must be or-ed together with '|', not 'or'.

>>> print "A  B  C"
A B...
import doctest

print "Combining option flags using bitwise '|'..."
doctest.testmod(optionflags=doctest.NORMALIZE_WHITESPACE | doctest.ELLIPSIS)
print "Combining option flags using logical 'or'..."
doctest.testmod(optionflags=doctest.NORMALIZE_WHITESPACE or doctest.ELLIPSIS)
Date User Action Args
2011-05-22 10:09:26ekornsetrecipients: + ekorn, docs@python
2011-05-22 10:09:26ekornsetmessageid: <>
2011-05-22 10:09:25ekornlinkissue12148 messages
2011-05-22 10:09:25ekorncreate