[issue28713] Recent tutorial for recent Python3 still uses IOError.

2016-11-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3375c111d1ff by Kushal Das in branch '3.6': Closes #28713 uses OSError in the tutorial https://hg.python.org/cpython/rev/3375c111d1ff New changeset 15e5e476e4a1 by Kushal Das in branch 'default': Closes #28713 uses OSError in the tutorial https://hg

[issue28713] Recent tutorial for recent Python3 still uses IOError.

2016-11-16 Thread Kushal Das
Kushal Das added the comment: This following one line change should fix this one. -- keywords: +patch nosy: +kushal.das Added file: http://bugs.python.org/file45504/issue28713.patch ___ Python tracker _

[issue28713] Recent tutorial for recent Python3 still uses IOError.

2016-11-15 Thread Daisuke Miyakawa
Changes by Daisuke Miyakawa : -- versions: +Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue28713] Recent tutorial for recent Python3 still uses IOError.

2016-11-15 Thread Daisuke Miyakawa
New submission from Daisuke Miyakawa: https://docs.python.org/3.5/tutorial/errors.html for arg in sys.argv[1:]: try: f = open(arg, 'r') except IOError: print('cannot open', arg) else: print(arg, 'has', len(f.readlines()), 'lines') f.close() Although