diff options
author | Skip Montanaro <skip@pobox.com> | 2002-07-25 06:18:42 +0000 |
---|---|---|
committer | Skip Montanaro <skip@pobox.com> | 2002-07-25 06:18:42 +0000 |
commit | 21ee37c94e78e43adabf178c53401cebde4ce96f (patch) | |
tree | 942c0688a42489b03a344040e3d2b439f081bb6b /Python/errors.c | |
parent | f8c8cf8a9d8b9136571b65e82f95e136fd0374e8 (diff) | |
download | cpython-git-21ee37c94e78e43adabf178c53401cebde4ce96f.tar.gz |
remove spurious SET_LINENO from com_list_for and com_list_if. All they do
is slow things down unnecessarily and make tracing much more verbose.
Something like
def f(n):
return [i for i in range(n) if i%2]
should have at most two SET_LINENO instructions, not four. When tracing,
the current line number should be printed once, not 2*n+1 times.
Diffstat (limited to 'Python/errors.c')
0 files changed, 0 insertions, 0 deletions