Re: [Tutor] Examples of "With....As Statement" in Python

2012-07-10 Thread Steven D'Aprano
James Bell wrote: I'm attempting to learn how to use the "withas" statement in python. I've read the documentation and also a few tutorials but I still cannot understand the concept. or how this is normally used. Can someone please write an example or 2 of simple ways to use the "with statem

Re: [Tutor] Examples of "With....As Statement" in Python

2012-07-10 Thread mariocatch
On Tue, Jul 10, 2012 at 11:25 AM, Mark Lawrence wrote: > On 10/07/2012 15:58, James Bell wrote: > >> I'm attempting to learn how to use the "withas" statement in python. >> >> I've read the documentation and also a few tutorials but I still cannot >> understand the concept. or how this is norm

Re: [Tutor] Examples of "With....As Statement" in Python

2012-07-10 Thread Mark Lawrence
On 10/07/2012 15:58, James Bell wrote: I'm attempting to learn how to use the "withas" statement in python. I've read the documentation and also a few tutorials but I still cannot understand the concept. or how this is normally used. Can someone please write an example or 2 of simple ways to

[Tutor] Examples of "With....As Statement" in Python

2012-07-10 Thread James Bell
I'm attempting to learn how to use the "withas" statement in python. I've read the documentation and also a few tutorials but I still cannot understand the concept. or how this is normally used. Can someone please write an example or 2 of simple ways to use the "with statement". I understand