]> granicus.if.org Git - python/commitdiff
Added "import string" to a couple of examples that describe string
authorFred Drake <fdrake@acm.org>
Tue, 14 Sep 1999 18:00:49 +0000 (18:00 +0000)
committerFred Drake <fdrake@acm.org>
Tue, 14 Sep 1999 18:00:49 +0000 (18:00 +0000)
module functions, to clarify that the import is not automatic.
Suggested by Koray Oner <Koray.Oner@Eng.Sun.COM>.

Doc/tut/tut.tex

index f52ec61ee7db0d6bc0644be07378198f7f2e59d5..a125ba75ebd4c99e0dddd9915c6778b25cfe62a9 100644 (file)
@@ -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)