0

What does the with function do?

25th Sep 2016, 8:24 PM
Ejah Frg
Ejah Frg - avatar
3 Answers
+ 1
first, it's a statement. Second, it opens what is called a "context manager" that closes automatically at the end of indentation, dealing with exceptions if needed.
25th Sep 2016, 9:14 PM
Amaras A
Amaras A - avatar
+ 1
Thanks
25th Sep 2016, 9:49 PM
Ejah Frg
Ejah Frg - avatar
0
can some1 give an appropriate syntax using with statement...pls
26th Sep 2016, 4:08 PM
rohi
rohi - avatar