tag wrote: > On 22 May, 08:59, Peter Otten <[EMAIL PROTECTED]> wrote:
>> inspect.getmodule(f) returns None because f() is not defined in a module. > OK. But there was a module when I ran interactively? Yes. Looking into the doctest source, there is a -- deprecated -- class called Tester that provides a module. I don't know why this approach was dropped. Peter -- http://mail.python.org/mailman/listinfo/python-list