summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJean-Philippe Camguilhem <jp.camguilhem@gmail.com>2011-11-22 00:20:07 +0100
committerMichael Merickel <michael@merickel.org>2011-11-21 20:47:55 -0600
commit2cf5d280866e8936b0fee0952c89ebde164337ee (patch)
tree3dfbb22416ecf914f473d5a5114fc5d87d418aa4 /docs
parent7bae406b11df0e3039798898e7951a09f31c0e53 (diff)
downloadpyramid-2cf5d280866e8936b0fee0952c89ebde164337ee.tar.gz
pyramid-2cf5d280866e8936b0fee0952c89ebde164337ee.tar.bz2
pyramid-2cf5d280866e8936b0fee0952c89ebde164337ee.zip
add bpython support to pshell with raydeo remarks and design
Diffstat (limited to 'docs')
-rw-r--r--docs/narr/commandline.rst34
1 files changed, 11 insertions, 23 deletions
diff --git a/docs/narr/commandline.rst b/docs/narr/commandline.rst
index dc2b75ed6..0f0e17ca6 100644
--- a/docs/narr/commandline.rst
+++ b/docs/narr/commandline.rst
@@ -268,34 +268,22 @@ exposed, and the request is configured to generate urls from the host
.. index::
single: IPython
+ single: bpython
-IPython
-~~~~~~~
-
-If you have `IPython <http://en.wikipedia.org/wiki/IPython>`_ installed in
-the interpreter you use to invoke the ``pshell`` command, ``pshell`` will use
-an IPython interactive shell instead of a standard Python interpreter shell.
-If you don't want this to happen, even if you have IPython installed, you can
-pass the ``--disable-ipython`` flag to the ``pshell`` command to use a
-standard Python interpreter shell unconditionally.
-
-.. code-block:: text
-
- [chrism@vitaminf shellenv]$ ../bin/pshell --disable-ipython \
- development.ini#MyProject
-
-
-bpython
-~~~~~~~
+IPython or bpython
+~~~~~~~~~~~~~~~~~~
-If you have `bpython <http://bpython-interpreter.org/>`_ installed in
-the interpreter you use to invoke the ``pshell`` command, ``pshell`` will use
-a bpython interactive shell instead of a standard Python if you pass the ``-b``
-or ``--enable-bpython`` flag to the ``pshell`` command.
+If you have `IPython <http://en.wikipedia.org/wiki/IPython>`_ or
+`bpython <http://bpython-interpreter.org/>`_ or both installed in
+the interpreter you use to invoke the ``pshell`` command, ``pshell`` will
+autodiscover them and use the first respectively found in this order :
+IPython, bpython, standard Python interpreter. However you could
+specifically invoke one of your choice with the ``-p choice`` or
+``--python-shell choice`` option.
.. code-block:: text
- [chrism@vitaminf shellenv]$ ../bin/pshell --enable-bpython \
+ [chrism@vitaminf shellenv]$ ../bin/pshell -p ipython | bpython | python \
development.ini#MyProject
.. index::