Sir please tell the difference between these three values in args. And also the meaning of traceback object.
Could not understand print(args) in __exit__()
Hello @i.m.anand_31, in the exit section we return 3 things and those are,
error class, error object, traceback object.
Error Class is the inbuilt class for which the error is there. Like ‘ZeroDivisionError’ this is the class defined in the python.
Error Object is the object of the inbuilt class for which the error is there. Like ZeroDivisionError(‘division by zero’,) here this is the object defined in the class.
Traceback Object is the address of the location where the things are stored in the memory for the operation like this 10/0.
I hope this is clear to you and in case there will be any confusion pls let me know. And if it is clear to you pls mark it as resolve and feel free to provide the feedback.
Thanks