@@ -44,15 +44,16 @@ If you have `pip`_ installed, you can simply run:
44
44
$ pip install bpython
45
45
46
46
Start bpython by typing ``bpython `` in your terminal. You can exit bpython by
47
- using the ``exit() `` command.
47
+ using the ``exit() `` command or by pressing control-D like regular interactive
48
+ Python.
48
49
49
50
===================
50
51
Features & Examples
51
52
===================
52
- * In-line syntax highlighting. This uses Pygments for lexing the code as you
53
- type, and colours appropriately.
53
+ * Readline-like autocomplete, with suggestions displayed as you type.
54
54
55
- * Readline-like autocomplete. Suggestions displayed as you type.
55
+ * In-line syntax highlighting. This uses Pygments for lexing the code as you
56
+ type, and colours appropriately.
56
57
57
58
* Expected parameter list. As in a lot of modern IDEs, bpython will attempt to
58
59
display a list of parameters for any function you call. The inspect module is
@@ -62,14 +63,17 @@ Features & Examples
62
63
* Rewind. This isn't called "Undo" because it would be misleading, but "Rewind"
63
64
is probably as bad. The idea is that the code entered is kept in memory and
64
65
when the Rewind function is called, the last line is popped and the entire
65
- code is re-evaluated.
66
+ session is re-evaluated. Use <control-R> to rewind.
67
+
68
+ * Edit the current line or your entire session in an editor. F7 opens the current
69
+ session in a text editor, and if modifications are made, the session is rerun
70
+ with these changes.
66
71
67
72
* Pastebin code/write to file. Use the <F8> key to upload the screen's contents
68
73
to pastebin, with a URL returned.
69
74
70
- * Flush curses screen to stdout. When you quit bpython, the screen data will be
71
- flushed to stdout, so it basically looks the same as if you had quit the
72
- vanilla interpreter.
75
+ * Reload imported Python modules. Use <F6> to clear sys.modules and rerun your
76
+ session to test changes to code in a module you're working on.
73
77
74
78
=============
75
79
Configuration
0 commit comments