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.

作者 ddvoinikov
收信人 ddvoinikov
日期 2008-05-12.04:51:55
SpamBayes Score 0.010384322
Marked as misclassified
Message-id <1210567925.19.0.359554733284.issue2832@psf.upfronthosting.co.za>
In-reply-to
内容
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'
历史
日期 用户 动作 参数
2008-05-12 04:52:06ddvoinikov修改spambayes_score: 0.0103843 -> 0.010384322
recipients: + ddvoinikov
2008-05-12 04:52:05ddvoinikov修改spambayes_score: 0.0103843 -> 0.0103843
messageid: <1210567925.19.0.359554733284.issue2832@psf.upfronthosting.co.za>
2008-05-12 04:52:03ddvoinikov链接issue2832 messages
2008-05-12 04:52:02ddvoinikov创建