[Python-Dev] test_inspect.py still fails under -O

Fredrik Lundh fredrik@effbot.org
Wed, 28 Feb 2001 23:49:57 +0100


I wrote:
> +    lineno = frame.f_lineno
> +
> +    c = frame.f_code
> +    if not hasattr(c, 'co_lnotab'):
> +        return tb.tb_lineno

that "return" statement should be:

    return lineno

Cheers /F