-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
georgolm week3 #34
base: master
Are you sure you want to change the base?
georgolm week3 #34
Conversation
def put_redis_data(processed_data): | ||
# output data in console for each run | ||
string = str(processed_data) | ||
f = open('output.txt', 'w') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using a context manager for your open
, as in with open('output.txt', 'w') as f:
will prevent a file handle remaining open if there is an exception within the write
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work! Essentially identical to my commit (and the other one I reviewed too). I'm looking forward to this weeks assignment and exploring Dagsters capabilities more.
Sorry for not getting you this feedback yesterday.
Nice work! good job |
No description provided.