From: Fred Drake Date: Tue, 14 Sep 1999 18:00:49 +0000 (+0000) Subject: Added "import string" to a couple of examples that describe string X-Git-Tag: v1.6a1~922 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0ba58158c5ee9a508291e7d84c404880146288d7;p=python 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 . --- diff --git a/Doc/tut/tut.tex b/Doc/tut/tut.tex index f52ec61ee7..a125ba75eb 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)