[Python-Dev] co_firstlineno on decorated functions

Greg Ewing greg.ewing at canterbury.ac.nz
Wed Aug 4 01:04:27 CEST 2010


Guido van Rossum wrote:

> What are the use cases for co_firstlineno? Even if it is for
> displaying the source code, I can find virtue for both sides of this
> argument.

Seems to me that if the code is being displayed to a
human, the decorators are an important thing to know
about, so including them is good.

-- 
Greg


More information about the Python-Dev mailing list