[New-bugs-announce] [issue26430] quote marks problem on loaded file

quetzal report at bugs.python.org
Wed Feb 24 14:13:36 EST 2016


New submission from quetzal:

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

----------
messages: 260826
nosy: quetzal
priority: normal
severity: normal
status: open
title: quote marks problem on loaded file
type: behavior
versions: Python 3.4

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26430>
_______________________________________


More information about the New-bugs-announce mailing list