The scripts previously contained in this gist have moved to datagrok/modular-git-hooks/hooks.
Python has a built-in variable __debug__ which is set to True when python is called without -O (optimize). The -O flag disables all assertion code.
This seems at first glance like a very easy and clean construct to rely on when coding in development versus production: in development, don't use -O, defensively litter your code with type- and sanity-checking asserts. Perform development-only debugging by testing __debug__ beforehand.
When in production, run all code is run with -O which disables asserts (speeding execution) and sets __debug__ to False.
Version 3, 19 November 2007
Copyright © 2007 Free Software Foundation, Inc. http://fsf.org/
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
I hereby claim:
- I am datagrok on github.
- I am datagrok (https://keybase.io/datagrok) on keybase.
- I have a public key ASCrSLf3jYbRq3V0I7pJgP1UEqtjxqqP5iTBLfN5VXNq-Qo
To claim this, I am signing this object:
This article is now published on my website: Shared directory gotchas.
The article previously hosted at this location is now published on my website: If I Ran The Company.
This article previously hosted here is now published on my website: AGPLv3 affects only derivatives?
The article previously hosted here is now published on my website: My ErgoDox Keyboard.
This article is now published on my website: When are circular imports fatal?
This article is now published on my website: Prefer Subshells for Context.