4 ms·
The Google Python style guide might be a good start: https://google.github.io/styleguide/pyguide.html https://google.github.io/styleguide/pyguide.html I've als
by econner 10y ago
The Google Python style guide might be a good start: https://google.github.io/styleguide/pyguide.html https://google.github.io/styleguide/pyguide.html
I've also heard that at Google they require assert isinstance for every parameter of every function.
New Relic has very good tools for profiling python code if you're running a service.
- asuffield 10y ago(Tedious disclaimer: my opinion only, not speaking for anybody else. I'm an SRE at Google.) > I've also heard that at Google they require assert isinstance for every parameter of every function. This is not true.
- asdfologist 10y agoHow is that an opinion?
- asuffield 10y agoI might be wrong, and somebody who can speak for the company might contradict me in the future. I can only say anything with this proviso.
- asdfologist 10y agoBy definition an opinion can't be wrong. I think you meant speculation instead.
- qihqi 10y ago+1 (From former SWE at Google).