From d5e9daa21020a4e9590a0676df641f09aaf7abb4 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Fri, 19 Jan 2018 10:35:24 -0500 Subject: [PATCH] fix headers Signed-off-by: Kenneth Reitz --- source/the-interpreter.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/the-interpreter.rst b/source/the-interpreter.rst index 0090530..5026027 100644 --- a/source/the-interpreter.rst +++ b/source/the-interpreter.rst @@ -56,7 +56,7 @@ Python Interpreter Tricks ------------------------- ``_`` Trick -/////////// ++++++++++++ The ``_`` variable can be used to reference the last thing that was eval'd (e.g. automatically printed to the screen). For example:: @@ -69,7 +69,7 @@ The ``_`` variable can be used to reference the last thing that was eval'd (e.g. Very useful when using the interactive interpreter! Bytecode Trick -////////////// +++++++++++++++ There are a few tricks the interpreter has up its sleeve that I recommend you utilize on a regular basis. @@ -77,8 +77,8 @@ The first trick is ``PYTHONDONTWRITEBYTECODE``. If you set this environment vari I've been using this environment variable for 7+ years for development and have never had any problems becaue of it. -Interactive Trick -///////////////// +Interactive Mode Trick +++++++++++++++++++++++ The second trick is to run a Python script, say ``hello.py`` in "interactive" mode, with the ``$ python -i hello.py`` flag.