[Python-Dev] less quick patch for better debugging.
Michael Hudson
mwh at python.net
Fri Nov 28 10:58:58 EST 2003
Michael Hudson <mwh at python.net> writes:
> Guido van Rossum <guido at python.org> writes:
>> BTW, for the special case of multi-line argument lists, it is already
>> fixed.
>
> So it is. I guess the other situations that are worth fixing are long
> container -- list, tuple, dict -- literals. My brain is a bit too
> fried to think if a more general solution is feasible, but I will
> point out that since SET_LINENO went away, inserting superfluous calls
> to com_set_lineno doesn't result in superfluous bytecodes, so perhaps
> that could just be added to com_node or something.
Brain still fried, so someone else will have to tell me what's wrong
with:
http://python.org/sf/850789
which as sketched above calls com_set_lineno in every invocation of
com_node and removes all the other calls.
Cheers,
mh
--
Ability to type on a computer terminal is no guarantee of sanity,
intelligence, or common sense.
-- Gene Spafford's Axiom #2 of Usenet
More information about the Python-Dev
mailing list