Christian Heimes wrote:
> Should the node structure gain an additional field to drag the filename
> around?

Why not?

Early on in the design of the Pyrex compiler, I made the decision
that every parse tree node would contain a source filename and
position, down to character resolution. It's paid off enormously,
as I can produce highly pinpointed error messages for just about
anything at any stage of processing.

--
Greg
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to