[Python-Dev] Exceptions doctest Re: Request for review

2006-04-13 Thread Tim Peters
[Tim] ... doctest strives to be magic-free WYSIWYG. If someone _intends_ the module name to be optional in a doctest, they should explicitly use doctest's ELLIPSIS option. [Nick Coghlan] There's already a little bit of magic in the way doctest handles exceptions. I always use

Re: [Python-Dev] Exceptions doctest Re: Request for review

2006-04-13 Thread Nick Coghlan
Tim Peters wrote: Sorry, but it's horridly un-doctest-like to make inferences by magic. If you want to add an explicit ACCEPT_EXCEPTION_SUBCLASS doctest option, that's a different story. I would question the need, since I've never got close to needing it, and never heard anyone else bring