[Python-Dev] context manager - generator interaction?

Robert Brewer fumanchu at amor.org
Thu Apr 5 22:58:22 CEST 2007


Guido van Rossum wrote:
> Isn't this violating the rule that a try/except should only enclose
> the smallest expression where the exception is expected?

Yeah, and I keep finding myself wanting to hyperlink to that "rule" in
the official docs, but it only seems to be written down in developer's
heads. Can we get that into the Language Ref somewhere? Maybe on the
http://docs.python.org/ref/try.html page?


Robert Brewer
System Architect
Amor Ministries
fumanchu at amor.org


More information about the Python-Dev mailing list