Thursday, 12 September 2013

What does the 'with' statement do in python?

What does the 'with' statement do in python?

I am new to Python. In one tutorial of connecting to mysql and fetching
data, I saw the with statement. I read about it and it was something
related to try-finally block. But I couldn't find a simpler explanation
that I could understand.

No comments:

Post a Comment