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.

Author py.user
Recipients py.user
Date 2011-08-03.03:40:56
SpamBayes Score 0.0037496472
Marked as misclassified No
Message-id <1312342857.65.0.519087958431.issue12685@psf.upfronthosting.co.za>
In-reply-to
Content
>>> with open('/etc/passwd') as f1, \
...      open('/etc/profile) as f2:
  File "<stdin>", line 2
    open('/etc/profile) as f2:
                             ^
SyntaxError: EOL while scanning string literal
>>>

>>> with open('/etc/passwd') as f1,          open('/etc/profile') as f2:
...

working example for a loop:

>>> for i, j in zip(range(10), \
...                 range(5, 15)):
...   print(i, j)
... 
0 5
1 6
2 7
3 8
4 9
5 10
6 11
7 12
8 13
9 14
>>>

>>> for i, j in \
...             zip(range(10), range(5, 15)):
...   print(i, j)
... 
0 5
1 6
2 7
3 8
4 9
5 10
6 11
7 12
8 13
9 14
>>>
History
Date User Action Args
2011-08-03 03:40:57py.usersetrecipients: + py.user
2011-08-03 03:40:57py.usersetmessageid: <1312342857.65.0.519087958431.issue12685@psf.upfronthosting.co.za>
2011-08-03 03:40:56py.userlinkissue12685 messages
2011-08-03 03:40:56py.usercreate