Is there a way to ensure resource cleanup with a construct such as:

x = load (open ('my file', 'rb))

Is there a way to ensure this file gets closed?

-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to