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.

作者 loewis
收信人 loewis, ocean-city
日期 2008-03-17.11:18:16
SpamBayes Score 0.016456613
Marked as misclassified
Message-id <1205752697.93.0.710159288082.issue2301@psf.upfronthosting.co.za>
In-reply-to
内容
You are probably right about the source of the problem; I was confusing 
it with a regular exception, e.g.

print("年",a)

However, I also fail to reproduce the problem on OSX. I get

  File "a.py", line 3
    print "�N"
             ^
SyntaxError: invalid syntax

I'm not quite sure what the N is doing in there, but the first character 
is the replacement character (hopefully, the tracker will reproduce it 
correctly); I get that because pythonrun uses the "replace" codec.

I guess you are not seeing it because then the replacement character 
cannot actually be output to your terminal. Please try

print("\ufffd")

to see what that does.
历史
日期 用户 动作 参数
2008-03-17 11:18:18loewis修改spambayes_score: 0.0164566 -> 0.016456613
recipients: + loewis, ocean-city
2008-03-17 11:18:17loewis修改spambayes_score: 0.0164566 -> 0.0164566
messageid: <1205752697.93.0.710159288082.issue2301@psf.upfronthosting.co.za>
2008-03-17 11:18:17loewis链接issue2301 messages
2008-03-17 11:18:16loewis创建