In article <[email protected]>, andrew cooke <[email protected]> wrote: >Aahz wrote: >> In article <[email protected]>, >> andrew cooke <[email protected]> wrote: >> >>>(I've just noticed that the comments in Sequence are incorrect, >>>unfortunately - please ignore any mention of "index"). >> >> s/comments/lies/ per my .sig ;-) >[...] >> "At Resolver we've found it useful to short-circuit any doubt and just >> refer to comments in code as 'lies'. :-)" > >yeah, it's hard. i tend to add comments as i work through the problem, >but maybe i should delete them all at the end - in that case i originally >had the definition of the regexps and their evaluation all mixed up in the >same objects. it was chaos. i find writing a package like that in spare >time is surprisingly hard - more pressure than at work in some ways (want >to do so much more, have much less time). andrew
This is one reason why my preferred unit test approach focuses on doctest. (Another big reason is that I'm a lazy bum. ;-) -- Aahz ([email protected]) <*> http://www.pythoncraft.com/ "At Resolver we've found it useful to short-circuit any doubt and just refer to comments in code as 'lies'. :-)" --Michael Foord paraphrases Christian Muirhead on python-dev, 2009-3-22 -- http://mail.python.org/mailman/listinfo/python-list
