Mo Ali added the comment:

Serhiy,

I expected a type error or a filenotfound like you received, however mine 
doesn't return the same. It just hangs.  I've attached a picture.  Also, I 
meant this to be for 3.6 not 3.5.

>>> test = False
>>> with open(test) as f:
...     fail = f.read()
...

----------
versions: +Python 3.6 -Python 3.5
Added file: http://bugs.python.org/file46315/Screen Shot 2017-01-17 at 10.09.35 
AM.png

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue29297>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to