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 skrah
Recipients ezio.melotti, michael.foord, pitrou, r.david.murray, serhiy.storchaka, skrah
Date 2013-01-26.17:16:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <20130126171622.GA14625@sleipnir.bytereef.org>
In-reply-to <1359212846.83.0.75748405145.issue17041@psf.upfronthosting.co.za>
Content
Serhiy Storchaka <report@bugs.python.org> wrote:
> > It seems like it would make more sense to combine both checks into one decorator.
> 
> These are different cases. @unittest.skipIf(sys.flags.optimize >= 2) is about docstrings in Python implemented modules, and @support.requires_docstrings is about docstrings in C implemented modules.

But they're always used together, aren't they? I kind of like the idea of a
single decorator.  We could have two different messages "compiled without docstrings"
and "docstrings are omitted with -O2 and above", where the first message
should get priority if both conditions are true.

Given the mood on python-dev concerning --without-doc-strings, I wonder if
we should stick to minimal changes and just skip the tests in test_pydoc.py
instead of fixing them.

Personally I'm happy either way.  David, what do you think?
History
Date User Action Args
2013-01-26 17:16:20skrahsetrecipients: + skrah, pitrou, ezio.melotti, r.david.murray, michael.foord, serhiy.storchaka
2013-01-26 17:16:20skrahlinkissue17041 messages
2013-01-26 17:16:20skrahcreate