[New-bugs-announce] [issue9608] Re-phrase best way of using exceptions in doanddont.rst
report at bugs.python.org
Sun Aug 15 14:23:45 CEST 2010
New submission from Floris Bruynooghe <floris.bruynooghe at gmail.com>:
The description of how to best use exceptions is slightly confusing and led me to believe there was an issue when using open() as a context manager. The main issue is that the wording seems to suggest the example above it is the best and not the very last.
Attached is a patch which uses a slightly different wording which IMHO makes it clearer that the with-statement is the preferred method and does not introduce subtle bugs.
assignee: docs at python
nosy: docs at python, flub
title: Re-phrase best way of using exceptions in doanddont.rst
type: feature request
versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3
Added file: http://bugs.python.org/file18538/doandont.diff
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce