I know that "with" is very powerful and I was using it to open a file
...and close it.
with
keeps any session (writing files, accessing databases, http sessions) open and closes it, too. This leads to cleaner structure and cleaner code.
(The other way would be using open()
and close()
functions, which can lead to all sorts of trouble)
btw did you manage to use condenser's get_accounts function?