diff options
author | Fred Drake <fdrake@acm.org> | 1999-09-14 18:00:49 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 1999-09-14 18:00:49 (GMT) |
commit | 0ba58158c5ee9a508291e7d84c404880146288d7 (patch) | |
tree | c30370051f7b3fe4aba6c45bef1fc72f82fd1e96 | |
parent | fa4eb188f4002383b2c50957e1ec089d1641a8ca (diff) | |
download | cpython-0ba58158c5ee9a508291e7d84c404880146288d7.zip cpython-0ba58158c5ee9a508291e7d84c404880146288d7.tar.gz cpython-0ba58158c5ee9a508291e7d84c404880146288d7.tar.bz2 |
Added "import string" to a couple of examples that describe string
module functions, to clarify that the import is not automatic.
Suggested by Koray Oner <Koray.Oner@Eng.Sun.COM>.
-rw-r--r-- | Doc/tut/tut.tex | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Doc/tut/tut.tex b/Doc/tut/tut.tex index f52ec61..a125ba7 100644 --- a/Doc/tut/tut.tex +++ b/Doc/tut/tut.tex @@ -572,6 +572,7 @@ the first line above could also have been written \samp{word = 'Help' expressions: \begin{verbatim} +>>> import string >>> 'str' 'ing' # <- This is ok 'string' >>> string.strip('str') + 'ing' # <- This is ok @@ -2387,6 +2388,7 @@ numeric string on the left with zeros. It understands about plus and minus signs: \begin{verbatim} +>>> import string >>> string.zfill('12', 5) '00012' >>> string.zfill('-3.14', 7) |