This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ddvoinikov
Recipients ddvoinikov
Date 2008-05-12.04:51:55
SpamBayes Score 0.010384322
Marked as misclassified No
Message-id <1210567925.19.0.359554733284.issue2832@psf.upfronthosting.co.za>
In-reply-to
Content
Stack trace information extracted with traceback.extract_stack is
incorrect in that the #-*- line causes double counting. For example:

#comment
from traceback import extract_stack
print("this is line", extract_stack()[-1][1])

prints 'this is line 3', but

#comment
#-*- coding: windows-1251 -*-
from traceback import extract_stack
print("this is line", extract_stack()[-1][1])

prints 'this is line 6'
History
Date User Action Args
2008-05-12 04:52:06ddvoinikovsetspambayes_score: 0.0103843 -> 0.010384322
recipients: + ddvoinikov
2008-05-12 04:52:05ddvoinikovsetspambayes_score: 0.0103843 -> 0.0103843
messageid: <1210567925.19.0.359554733284.issue2832@psf.upfronthosting.co.za>
2008-05-12 04:52:03ddvoinikovlinkissue2832 messages
2008-05-12 04:52:02ddvoinikovcreate