Re: Decorator cllass hides docstring from doctest?

2006-09-21 Thread Peter Otten
Berthold Höllmann wrote: > Saving the following code to a file and running the code through > python does not give the expected error. disableling the "@decor" line > leads to the expected error message. Is this a bug or an overseen > feature? Neither, I'd say. Just an unfortunate interaction bet

Re: Decorator cllass hides docstring from doctest?

2006-09-21 Thread Michele Simionato
Berthold Höllmann wrote: > Saving the following code to a file and running the code through > python does not give the expected error. disableling the "@decor" line > leads to the expected error message. Is this a bug or an overseen > feature? Others have already pointed out the mistake. I wrote a

Re: Decorator cllass hides docstring from doctest?

2006-09-21 Thread Felipe Almeida Lessa
2006/9/21, Berthold Höllmann <[EMAIL PROTECTED]>: > Saving the following code to a file and running the code through > python does not give the expected error. disableling the "@decor" line > leads to the expected error message. Is this a bug or an overseen > feature? Try the new_decor class descr

Re: Decorator cllass hides docstring from doctest?

2006-09-21 Thread Duncan Booth
[EMAIL PROTECTED] (Berthold =?iso-8859-15?Q?H=F6llmann?=) wrote: > Saving the following code to a file and running the code through > python does not give the expected error. disableling the "@decor" line > leads to the expected error message. Is this a bug or an overseen > feature? > It's a prob

Decorator cllass hides docstring from doctest?

2006-09-21 Thread Berthold Höllmann
Saving the following code to a file and running the code through python does not give the expected error. disableling the "@decor" line leads to the expected error message. Is this a bug or an overseen feature? --- snip dectest.py --- class decor(object): def __init__(self, f): self.f