line_no property

line_no property

The lineno attribute must return the value it was initialized to. When the object is created, this attribute must be initialized to zero. It represents the line number where the error occurred in the script.

Definition:

@property
def line_no(self):
    ...
@line_no.setter
def line_no(self, value):
    ...

See Also