Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 96628a9

Browse files
committed
typos, layout and other small things
1 parent eae3f73 commit 96628a9

44 files changed

Lines changed: 174 additions & 120 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Doc/boilerplate.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
E-mail: {\tt [email protected]}
66
}
77

8-
\date{28 March 1995 \\ Release 1.2-proof-3} % XXX update before release!
8+
\date{10 April 1995 \\ Release 1.2} % XXX update before release!

Doc/info/texipre.dat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ the language, see the @cite{Python Tutorial}. The @cite{Python
7777
Reference Manual} gives a more formal definition of the language.
7878
(These manuals are not yet available in INFO or Texinfo format.)
7979

80-
This version corresponds to Python version 1.2.
80+
This version corresponds to Python version 1.2 (4 April 1995).
8181

8282
@end ifinfo
8383

Doc/lib/libdbm.tex

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ \section{Built-in Module \sectcode{dbm}}
1818
\begin{funcdesc}{open}{filename\, rwmode\, filemode}
1919
Open a dbm database and return a mapping object. \var{filename} is
2020
the name of the database file (without the \file{.dir} or \file{.pag}
21-
extensions), \var{rwmode} is \code{'r'}, \code{'w'} or \code{'rw'} as for
22-
\code{open}, and \var{filemode} is the \UNIX{} mode of the file, used only
23-
when the database has to be created.
21+
extensions), \var{rwmode} is \code{'r'}, \code{'w'} or \code{'rw'} to
22+
open the database fore reading, writing or both respectively,
23+
and \var{filemode} is the \UNIX{} mode of the file, used only
24+
when the database has to be created (but to be supplied at all times).
2425
\end{funcdesc}

Doc/lib/libftplib.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ \section{Standard Module \sectcode{ftplib}}
1616
\begin{verbatim}
1717
>>> from ftplib import FTP
1818
>>> ftp = FTP('ftp.cwi.nl') # connect to host, default port
19-
>>> ftp.login() # default user anonymous, passwd user@hostname
19+
>>> ftp.login() # user anonymous, passwd user@hostname
2020
>>> ftp.retrlines('LIST') # list directory contents
2121
total 24418
2222
drwxrwsr-x 5 ftp-usr pdmaint 1536 Mar 20 09:48 .

Doc/lib/libgdbm.tex

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,14 @@ \section{Built-in Module \sectcode{gdbm}}
1818
\end{excdesc}
1919

2020
\begin{funcdesc}{open}{filename\, rwmode\, filemode}
21-
Open a gdbm database and return a mapping object. \var{filename} is
21+
Open a gdbm database and return a mapping object. \var{filename} is
2222
the name of the database file, \var{rwmode} is \code{'r'}, \code{'w'},
2323
\code{'c'}, or \code{'n'} for reader, writer (this also gives read
2424
access), create (writer, but create the database if it doesn't already
25-
exist) and newdb (which will always create a new database). Only one
26-
writer may open a gdbm file and many readers may open the file. Readers
27-
and writers cannot open the gdbm file at the same time. Note that the
28-
\code{GDBM_FAST} mode of opening the database is not supported. \var{filemode}
29-
is the \UNIX\ mode of the file, used only when a database is created.
25+
exist) and newdb (which will always create a new database). Only one
26+
writer may open a gdbm file and many readers may open the file. Readers
27+
and writers cannot open the gdbm file at the same time. Note that the
28+
\code{GDBM_FAST} mode of opening the database is not supported.
29+
\var{filemode} is the \UNIX\ mode of the file, used only when a
30+
database is created (but to be supplied at all times).
3031
\end{funcdesc}

Doc/lib/libimp.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ \subsection{Examples}
142142
return sys.modules[name]
143143
144144
# If any of the following calls raises an exception,
145-
# there's a problem we con't handle -- let the caller handle it.
145+
# there's a problem we can't handle -- let the caller handle it.
146146
147147
# See if it's a built-in module.
148148
m = imp.init_builtin(name)

Doc/lib/libjpeg.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ \section{Built-in Module \sectcode{jpeg}}
1414
Treat data as a pixmap of width \var{w} and height \var{h}, with \var{b} bytes per
1515
pixel. The data is in SGI GL order, so the first pixel is in the
1616
lower-left corner. This means that \code{lrectread} return data can
17-
immedeately be passed to compress. Currently only 1 byte and 4 byte
17+
immediately be passed to compress. Currently only 1 byte and 4 byte
1818
pixels are allowed, the former being treated as greyscale and the
1919
latter as RGB color. Compress returns a string that contains the
2020
compressed picture, in JFIF format.

Doc/lib/libnntplib.tex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ \section{Standard Module \sectcode{nntplib}}
1212
statistics about a newsgroup and print the subjects of the last 10
1313
articles:
1414

15+
\small{
1516
\begin{verbatim}
1617
>>> s = NNTP('news.cwi.nl')
1718
>>> resp, count, first, last, name = s.group('comp.lang.python')
@@ -34,6 +35,7 @@ \section{Standard Module \sectcode{nntplib}}
3435
'205 news.cwi.nl closing connection. Goodbye.'
3536
>>>
3637
\end{verbatim}
38+
}
3739

3840
To post an article from a file (this assumes that the article has
3941
valid headers):

Doc/lib/libpickle.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ \section{Standard Module \sectcode{pickle}}
146146

147147
\begin{verbatim}
148148
u = pickle.Unpickler(f)
149-
x = u.load(x)
149+
x = u.load()
150150
\end{verbatim}
151151

152152
A shorthand is:

Doc/lib/libposix.tex

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ \section{Built-in Module \sectcode{posix}}
1616
\stmodindex{os}
1717

1818
The descriptions below are very terse; refer to the
19-
corresponding \UNIX{} manual entry for more information.
19+
corresponding \UNIX{} manual entry for more information. Arguments
20+
called \var{path} refer to a pathname given as a string.
2021

2122
Errors are reported as exceptions; the usual exceptions are given
2223
for type errors, while errors reported by the system calls raise
@@ -340,7 +341,7 @@ \section{Built-in Module \sectcode{posix}}
340341
a tuple containing its pid and exit status indication (encoded as by
341342
\UNIX{}). The semantics of the call are affected by the value of
342343
the integer options, which should be 0 for normal operation. (If the
343-
system does not support waitpid(), this always raises
344+
system does not support \code{waitpid()}, this always raises
344345
\code{posix.error}. Not on MS-DOS.)
345346
\end{funcdesc}
346347

0 commit comments

Comments
 (0)