Re: [Python-Dev] context manager - generator interaction?

2007-04-06 Thread Guido van Rossum
On 4/5/07, Raymond Hettinger <[EMAIL PROTECTED]> wrote: > > 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 >

Re: [Python-Dev] context manager - generator interaction?

2007-04-06 Thread Steve Holden
Guido van Rossum wrote: > On 4/5/07, Raymond Hettinger <[EMAIL PROTECTED]> wrote: >>> 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 hyperli

Re: [Python-Dev] context manager - generator interaction?

2007-04-06 Thread skip
Guido> This rule has no place in a pure language *reference* manual. But Guido> it certainly deserves mention in any form of more practical Guido> documentation, be it a tutorial or a more advanced programming Guido> manual. PEP 8 anyone? Skip

Re: [Python-Dev] context manager - generator interaction?

2007-04-06 Thread Fred L. Drake, Jr.
On where to write guidelines about exception handling scope: Guido wrote: > This rule has no place in a pure language *reference* manual. But > it certainly deserves mention in any form of more practical > documentation, be it a tutorial or a more advanced programming > manual. On Friday 06

Re: [Python-Dev] context manager - generator interaction?

2007-04-06 Thread Barry Warsaw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Apr 6, 2007, at 10:40 AM, Fred L. Drake, Jr. wrote: > On Friday 06 April 2007 10:31, [EMAIL PROTECTED] wrote: >> PEP 8 anyone? > > New users should be exposed sooner than this; most will never read > any PEP. > The tutorial seems like a good plac

Re: [Python-Dev] More exposure for PEP8 (was: context manager - generator interaction?)

2007-04-06 Thread Oleg Broytmann
On Fri, Apr 06, 2007 at 10:58:41AM -0400, Barry Warsaw wrote: > It might even be worthwhile to give PEP 8 > more exposure in the tutorial or on the documentation ToC page. And bundle the PEP with the distributed documentation. Oleg. -- Oleg Broytmannhttp://phd.pp.ru/

Re: [Python-Dev] context manager - generator interaction?

2007-04-06 Thread Guido van Rossum
I've added a paragraph to the PEP, with examples. On 4/6/07, Barry Warsaw <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On Apr 6, 2007, at 10:40 AM, Fred L. Drake, Jr. wrote: > > > On Friday 06 April 2007 10:31, [EMAIL PROTECTED] wrote: > >> PEP 8 anyone? > > > >

Re: [Python-Dev] [Python-checkins] Python Regression Test Failures opt (1)

2007-04-06 Thread Raymond Hettinger
I believe the failures started with Facundo Batista's checkin on April 4th: - Author: facundo.batista Date: Wed Apr 4 16:10:40 2007 New Revision: 54681 Modified: python/trunk/Lib/test/test_socket_ssl.py Log: Fixed the way that the .pem files are looked for