-
Notifications
You must be signed in to change notification settings - Fork 4
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
RM-46 simplify redshift records_unload #227
RM-46 simplify redshift records_unload #227
Conversation
quiet_remove(unhandled_hints, 'quoting') | ||
quiet_remove(unhandled_hints, 'doublequote') | ||
quiet_remove(unhandled_hints, 'quotechar') | ||
return redshift_options |
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.
Aren't you modifying the dict in-place already? no need to return it
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.
Definitely, I always have a tough time remembering in Python that when you're not passing around base data types you're passing pointers to the objects rather than copies of the objects.
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.
Probably because pointers is the wrong way to think about it but... mental models die hard. I was a C guy =(
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.
Well python is written in C so it's definitely all pointers under the hood
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.
tru tru
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.
It's just that like... it makes more sense when I think of python as names and objects rather than pointers and dereferencing pointers. 🤷
…C901-redshift_unload_options-is-too-complex-17' of https://github.com/bluelabsio/records-mover into RM-46-records_mover-db-redshift-records_unload.py-15-1-C901-redshift_unload_options-is-too-complex-17
…load.py-15-1-C901-redshift_unload_options-is-too-complex-17
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.
looks good!
No description provided.