[docs] Document why generators don't support the context management protocol (issue 13814)

rdmurray at bitdance.com rdmurray at bitdance.com
Tue Apr 14 02:53:26 CEST 2015


Also, please wrap the text at 79 columns.


http://bugs.python.org/review/13814/diff/14541/Doc/faq/design.rst
File Doc/faq/design.rst (right):

http://bugs.python.org/review/13814/diff/14541/Doc/faq/design.rst#newcode834
Doc/faq/design.rst:834: (denoting that __exit__() is missing from your
generator). If you are using a generator in
I think you meant "If the generator object directly supported the
context manager protocol (ie: it had an __exit__ method), then..." (and
then you need to change the tense of the rest of the sentence).

http://bugs.python.org/review/13814/


More information about the docs mailing list