The dev mode enable many modules to enter a dev mode, I think this would be a good idea to have this for friendly too.
We may, or may not, reuse the PYTHONDEVMODE variable though, we could use a FRIENDLY_DEBUG variable if you don't want friendly to switch to dev mode for too many people.
In Python 3.7+ we could use sys.flags.dev_mode, but this attribute does not exist in 3.6 so I stick to the os.environ.
The dev mode enable many modules to enter a dev mode, I think this would be a good idea to have this for friendly too.
We may, or may not, reuse the PYTHONDEVMODE variable though, we could use a
FRIENDLY_DEBUG
variable if you don't want friendly to switch to dev mode for too many people.In Python 3.7+ we could use
sys.flags.dev_mode
, but this attribute does not exist in 3.6 so I stick to theos.environ
.