help "too active" misfeature
Roman Suzi
rnd at onego.ru
Sat Sep 1 09:36:44 EDT 2001
On Sat, 1 Sep 2001, Emile van Sebille wrote:
>Note that this still occurs in current cvs, and that since 2.1 there is no
>need to import help and when you don't things work right. Otherwise,
>setting the __repr__ and __str__ functions in class Helper of pydoc.py to:
>
> def __str__(self):
> if inspect.stack()[1][3] == '?':
> self()
> return ''
> return '<pydoc.Helper instance>'
>
> def __repr__(self):
> return '<pydoc.Helper instance>'
>
>also appears to fix the proble.
Well. But is it bug or feature? Do I need to post bug report on sf?
Sincerely yours, Roman Suzi
--
_/ Russia _/ Karelia _/ Petrozavodsk _/ rnd at onego.ru _/
_/ Saturday, September 01, 2001 _/ Powered by Linux RedHat 6.2 _/
_/ "Brain: The apparatus with which we think that we think." _/
More information about the Python-list
mailing list