Skip to content

Commit 0df3f3f

Browse files
authored
Fix variable reference. Make online Docstring access more generic.
1 parent 265fe80 commit 0df3f3f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

source/PvL_05.rst

+5-5
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,14 @@ simply type the following into an editor like Spyder or PyScripter script:
6666
new_string = our_string.
6767

6868
When you type the period to select one of the methods of ``our_string``, your editor might pop up a
69-
selection window showing all the methods (there are around 70 of them --- thank goodness we'll only
69+
selection window — typically by pressing ``Tab`` — showing all the methods (there are around 70 of them --- thank goodness we'll only
7070
use a few of those!) that could be used on your string.
7171

7272
.. image:: illustrations/string_methods.png
7373

7474
When you type the name of the method, some further help about its parameter and return
75-
type, and its docstring, will be displayed. This is a good example of a tool --- PyScripter ---
76-
using the meta-information --- the docstrings --- provided by the module programmers.
75+
type, and its docstring, may be displayed by your scripting environments (for instance, in a Jupyter
76+
notebook you can get this inofrmation by pressing ``Shift+Tab`` after a function name).
7777

7878
.. image:: illustrations/swapcase.png
7979

@@ -91,8 +91,8 @@ selects a single character substring from a string:
9191

9292

9393
The expression ``fruit[1]`` selects character number 1 from ``fruit``, and creates a new
94-
string containing just this one character. The variable ``m`` refers to the result.
95-
When we display ``m``, we could get a surprise:
94+
string containing just this one character. The variable ``letter`` refers to the result.
95+
When we display ``letter``, we could get a surprise:
9696

9797
.. sourcecode:: pycon
9898

0 commit comments

Comments
 (0)