New submission from Stavros Korokithakis [EMAIL PROTECTED]:
A multiline string with quotes next to the ending quote is not parsed
correctly:
In [1]: A test
File ipython console, line 1
A test
^
type
Stavros Korokithakis [EMAIL PROTECTED] added the comment:
Hmm, what would be the meaning of in this particular context? I
can't think of a situation where
A test
would be valid code.
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3298
Stavros Korokithakis [EMAIL PROTECTED] added the comment:
Ah, interesting, I had forgotten that adjacent strings are merged.
Thanks.
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3298
New submission from Stavros Korokithakis:
Currently, the new with statement does not support multiple handlers.
For example, to open two files for input/output you would have to do:
with open(filein) as input:
with open(fileout) as output:
#Do stuff
pass
This adds
Stavros Korokithakis added the comment:
What this syntax does is similar to the nested context manager in case
12 of PEP343, but with cleaner syntax.
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1435