New submission from Floris Bruynooghe <floris.bruynoo...@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: d...@python
components: Documentation
files: doandont.diff
keywords: patch
messages: 113949
nosy: d...@python, flub
priority: normal
severity: normal
status: open
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 <rep...@bugs.python.org>
<http://bugs.python.org/issue9608>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to