Python 2.5 "with"; Isolate 2.5-2.6 grammar better

This commit is contained in:
rocky
2017-11-16 09:26:23 -05:00
parent 953cf312db
commit 53beae8ee6
4 changed files with 21 additions and 1 deletions

View File

@@ -1,3 +1,5 @@
from __future__ import with_statement
with (sys) as f:
with open(__file__, 'r') as f:
print(f)
with f:
pass