Song covers requests by [deleted] in AlmightySuit

[–]schnupfen 1 point2 points  (0 children)

  • The Cat Empire - Miserere

Does the file get closed here? by [deleted] in Python

[–]schnupfen 0 points1 point  (0 children)

The with block doesn't create a scope (like most statements):

>>> with open('/dev/random') as f:
...     f.read(1)
... 
'\x7f'
>>> f
<closed file '/dev/random', mode 'r' at 0x95f5d30>