Fix spelling of "PYTHONDONTWRITEBYTECODE"

This commit is contained in:
Ben Judson
2018-01-15 09:51:55 -08:00
committed by GitHub
parent 7ca039af04
commit dade61eb5b
+2 -2
View File
@@ -20,7 +20,7 @@ Bytecode Trick
There are a few tricks the interpreter has up its sleeve that I recommend you utilize on a regular basis.
The first trick is ``PYTHONDONTWRITEBYECODE``. If you set this environment variable (e.g. in your ``~/.bashrc`` file or similar), Python won't write ``*.pyc`` files to disk, which is great, because they are incredibly annoying.
The first trick is ``PYTHONDONTWRITEBYTECODE``. If you set this environment variable (e.g. in your ``~/.bashrc`` file or similar), Python won't write ``*.pyc`` files to disk, which is great, because they are incredibly annoying.
I've been using this environment variable for 7+ years for development and have never had any problems becaue of it.
@@ -29,4 +29,4 @@ Interactive Trick
The second trick is to run a Python script, say ``hello.py`` in "interactive" mode, with the ``$ python -i hello.py`` flag.
This flag will run the script, like usual, but will then drop you into a REPL afterwards that has all the locals and globals from the script loaded, for your interactive pleasure. Very useful.
This flag will run the script, like usual, but will then drop you into a REPL afterwards that has all the locals and globals from the script loaded, for your interactive pleasure. Very useful.