You are viewing a single comment's thread from:

RE: [ENG/ITA] Python and Hive: Learning from Other Hiveans!

in Olio di Balena4 months ago (edited)

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?

Sort:  
Loading...