File: tips.rst

package info (click to toggle)
bpython 0.26-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,144 kB
  • sloc: python: 11,682; xml: 53; makefile: 5; sh: 2
file content (28 lines) | stat: -rw-r--r-- 776 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
.. _tips:

Tips and tricks
===============
There are various tricks and tips to bpython. We currently list one of them on
this page. If you know any more, don't hesitate to let us know
(:ref:`community`)!

bpython and multiple python versions
------------------------------------
To use bpython with multiple version items this trick has been relayed
to us by Simon Liedtke.

Do a source checkout of bpython and add the following to your `.profile`
equivalent file.

.. code-block:: bash

  alias bpython3.5='PYTHONPATH=~/python/bpython python3.5 -m bpython'

Where the `~/python/bpython`-path is the path to where your bpython source code
resides.

You can of course add multiple aliases.

.. note::

    Make sure you have the dependencies installed on all Python versions.