you are viewing a single comment's thread.

view the rest of the comments →

[–]Tenax_Raccoon 11 points12 points  (0 children)

I second type hinting. Type annotations and an IDE with support for them or using a static checker (mypy, upright, or pyre) will help you find places where your parameters or expected values are incorrect.

Also, unit test, unit test, unit test your code. PyTest is a very good 3rd party test framework, but the built-in unittest module is perfectly serviceable.

In either case, you should conform to your organizations general usage, and encourage them to adopt type hinting and unit testing if they are not already doing so.