Re: Line-continuation Anti-Idiom and with statement

2009-11-24 Thread Neil Cerutti
On 2009-11-23, Terry Reedy tjre...@udel.edu wrote: Neil Cerutti wrote: Unfortunately, the new nested with statement (which I also read about today) forces me into this anti-idiom. When replacing an appearance of contextlib.nested with the 3K with statement, I ended up with an unexpected

Line-continuation Anti-Idiom and with statement

2009-11-23 Thread Neil Cerutti
I installed Python 3.1 today, and I've been porting my small library of programs to the new system. I happened to read the interesting Idioms and Anti-Idioms HOWTO, and saw the '\' continuation character labeled an anti-idiom. I already generally avoided it, so I just nodded. Unfortunately, the

Re: Line-continuation Anti-Idiom and with statement

2009-11-23 Thread MRAB
Neil Cerutti wrote: I installed Python 3.1 today, and I've been porting my small library of programs to the new system. I happened to read the interesting Idioms and Anti-Idioms HOWTO, and saw the '\' continuation character labeled an anti-idiom. I already generally avoided it, so I just

Re: Line-continuation Anti-Idiom and with statement

2009-11-23 Thread Terry Reedy
Neil Cerutti wrote: I installed Python 3.1 today, and I've been porting my small library of programs to the new system. I happened to read the interesting Idioms and Anti-Idioms HOWTO, and saw the '\' continuation character labeled an anti-idiom. I already generally avoided it, so I just

Re: Line-continuation Anti-Idiom and with statement

2009-11-23 Thread Terry Reedy
MRAB wrote: Neil Cerutti wrote: I installed Python 3.1 today, and I've been porting my small library of programs to the new system. I happened to read the interesting Idioms and Anti-Idioms HOWTO, and saw the '\' continuation character labeled an anti-idiom. I already generally