> I think it should either get initialized always (to None), or at least the doc should get fixed (both places above).    I disagree. The text is the same as for other syntax errors fields. It says:    > attr:`end_offset` For syntax errors    the same way offset is also for syntax errors:    > :attr:`offset` For syntax errors    The thing here is that end_offset can be None if not present even for syntax errors.