Message115526
Generally: +1 on making sure examples in the docs are up to date. If someone wants to do the tedious work of making sure that a "make doctest" succeeds, I'm all for it, it may involve adding a few (in HTML output invisible) testsetup blocks.
Eric: I'm not sure what the difference between your methods 2 and 3 is :)
As Terry already mentioned, by far not all example code is covered by that, and I don't think there's anything we can do about it. We can of course try converting more doc examples to doctest format, however:
a) for longer examples and especially function/class definitions this really hurts readability and usability (think copy/paste)
b) many examples are also not easily runnable (Tk is a good example, many more can be found in those for network services) |
|
Date |
User |
Action |
Args |
2010-09-03 22:45:24 | georg.brandl | set | recipients:
+ georg.brandl, terry.reedy, orsenthil, pitrou, stutzbach, ezio.melotti, eric.araujo, r.david.murray, Dmitry.Jemerov, docs@python, JingCheng.LIU |
2010-09-03 22:45:24 | georg.brandl | set | messageid: <1283553924.23.0.945278993936.issue9730@psf.upfronthosting.co.za> |
2010-09-03 22:45:22 | georg.brandl | link | issue9730 messages |
2010-09-03 22:45:22 | georg.brandl | create | |
|