Hi , I am new to this and am just trying to understand the with statement.I get to understand that it is supposed to replace the try except block.Now suppose I do something like this:-
try:
name='rubicon'/2 #to raise an exception
except Exception,e:
print "no not possible"
finally:
print"Ok I caught you"
Now how do I replace it with a context manager.
(well yes it is a totally amateurish, but please bear with me :-) )