29 Commits

Author SHA1 Message Date
Mariatta
107949cb87 bpo-30621: Update Input Output Tutorial Example(GH-2074) (GH-2120)
import json before using json module
(cherry picked from commit 1dbce04d0e)
2017-06-11 18:59:33 -07:00
Mariatta
e1b02ff588 [2.7] bpo-28315: Improve code examples in docs (GH-1372) (#1447)
Replace
   File "<stdin>", line 1, in ?
with
   File "<stdin>", line 1, in <module>.
(cherry picked from commit 8856940cf2)
2017-05-03 18:54:28 -07:00
Serhiy Storchaka
12d547a80d Issue #23921: Standardized documentation whitespace formatting.
Original patch by James Edwards.
2016-05-10 13:45:32 +03:00
Antoine Pitrou
197e71bce1 Issue #18840: Introduce the json module in the tutorial, and deemphasize the pickle module. 2013-12-05 23:46:32 +01:00
Raymond Hettinger
668b0058a3 Issue #18031: %-formatting isn't dead yet and might pull through. 2013-05-23 00:12:14 -07:00
Ezio Melotti
1b33206596 #13510: clarify that f.readlines() is note necessary to iterate over a file. Patch by Dan Riti. 2013-04-15 19:08:31 +03:00
Petri Lehtinen
0b785036ef Issue #8890: Stop advertising an insecure use of /tmp in docs 2013-02-23 19:24:31 +01:00
Sandro Tosi
6ce21a3b84 fix typo 2012-08-14 19:51:31 +02:00
Sandro Tosi
98ed08f24e update to new C roles and directives 2012-01-14 16:42:02 +01:00
Ezio Melotti
dd6833d20a Fix markup in inputoutput.rst. 2011-03-13 02:13:08 +02:00
Georg Brandl
cdbc6967e8 #11405: do not reference the string module again for its deprecated functions, only for Template class. 2011-03-06 10:56:18 +01:00
Raymond Hettinger
2bd4795e94 Issue #11304: Input/output tutorial - PI is rounded not truncated. 2011-02-24 00:00:30 +00:00
Mark Dickinson
6b87f117ca Fix some documentation examples involving the repr of a float. 2009-11-24 14:27:02 +00:00
Michael Foord
60931a5a58 Change to tutorial wording for reading text / binary files on Windows. Issue #6301. 2009-09-13 16:13:36 +00:00
Georg Brandl
254c17c758 #6813: better documentation for numberless string formats. 2009-09-01 07:40:54 +00:00
Georg Brandl
14bb28aa62 Fix a few markup glitches. 2009-07-29 17:15:20 +00:00
Georg Brandl
a1a4bdb30c #6505: fix typos. 2009-07-18 09:06:31 +00:00
Mark Dickinson
3e4caeb3bf Issue #5341: Fix a variety of spelling errors. 2009-02-21 20:27:01 +00:00
Georg Brandl
c62ef8b4d9 Remove trailing whitespace. 2009-01-03 20:55:06 +00:00
Georg Brandl
fc29f27c16 #4811: fix markup glitches (mostly remains of the conversion),
found by Gabriel Genellina.
2009-01-02 20:25:14 +00:00
Georg Brandl
9af9498c6e Remove things specific to the old Macintosh, and spell "Mac OS X" consistently. 2008-09-13 17:41:16 +00:00
Georg Brandl
b04d4853a7 Remove mention of backquotes in the tutorial. 2008-08-08 15:34:34 +00:00
Georg Brandl
4b99e9b479 Shorten some overlong lines. 2008-07-26 22:13:29 +00:00
Georg Brandl
a66bb0a741 #3388: add a paragraph about using "with" for file objects. 2008-07-16 23:35:54 +00:00
Benjamin Peterson
f9ef9881d7 update the tutorial to use str.format 2008-05-26 00:54:22 +00:00