➜

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.

作者 quetzal
收信人 quetzal
日期 2016-02-24.19:13:36
SpamBayes Score -1.0
Marked as misclassified 是
Message-id <1456341216.28.0.891493532956.issue26430@psf.upfronthosting.co.za>
In-reply-to
内容
impossible to match a string pattern with a quotation mark in an opened file 
[code]
file = '''it's an opened file made of "strings"'''
if '''"string"''' in file:
____print('ok')
else:
____print('none')
[/code]
in iddle, it works with no difficulties...
but if the file comes from an file = open(fileadress).read()

the same code return nothing... it do not find the pattern string, and just because of double quote marks (i've not tried with some other marks)

for me it's a bug, because it do works well, if their no quotation marks
历史
日期 用户 动作 参数
2016-02-24 19:13:36quetzal修改recipients: + quetzal
2016-02-24 19:13:36quetzal修改messageid: <1456341216.28.0.891493532956.issue26430@psf.upfronthosting.co.za>
2016-02-24 19:13:36quetzal链接issue26430 messages
2016-02-24 19:13:36quetzal创建