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

Skip to content

Commit 8ee679f

Browse files
committed
Minor changes to match the style guide.
1 parent 4124a0b commit 8ee679f

21 files changed

Lines changed: 79 additions & 72 deletions

Doc/lib/internet.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ \chapter{Internet Protocols and Support \label{internet}}
22

33
\index{WWW}
44
\index{Internet}
5-
\index{World-Wide Web}
5+
\index{World Wide Web}
66

77
The modules described in this chapter implement Internet protocols and
88
support for related technology. They are all implemented in Python.

Doc/lib/lib.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ \chapter*{Front Matter\label{front}}
2828
\noindent
2929
Python is an extensible, interpreted, object-oriented programming
3030
language. It supports a wide range of applications, from simple text
31-
processing scripts to interactive WWW browsers.
31+
processing scripts to interactive Web browsers.
3232

3333
While the \citetitle[../ref/ref.html]{Python Reference Manual}
3434
describes the exact syntax and semantics of the language, it does not

Doc/lib/libasyncore.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ \section{\module{asyncore} ---
1717
different technique, that lets you have nearly all the advantages of
1818
multi-threading, without actually using multiple threads. It's really
1919
only practical if your program is largely I/O bound. If your program
20-
is CPU bound, then pre-emptive scheduled threads are probably what
21-
you really need. Network servers are rarely CPU-bound, however.
20+
is processor bound, then pre-emptive scheduled threads are probably what
21+
you really need. Network servers are rarely processor bound, however.
2222

2323
If your operating system supports the \cfunction{select()} system call
2424
in its I/O library (and nearly all do), then you can use it to juggle

Doc/lib/libbase64.tex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ \section{\module{base64} ---
99
\index{MIME!base64 encoding}
1010

1111
This module performs base64 encoding and decoding of arbitrary binary
12-
strings into text strings that can be safely emailed or posted. The
12+
strings into text strings that can be safely sent by email or included
13+
as part of an HTTP POST request. The
1314
encoding scheme is defined in \rfc{1521} (\emph{MIME
1415
(Multipurpose Internet Mail Extensions) Part One: Mechanisms for
1516
Specifying and Describing the Format of Internet Message Bodies},

Doc/lib/libbasehttp.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ \section{\module{BaseHTTPServer} ---
1212
\index{httpd}
1313

1414
This module defines two classes for implementing HTTP servers
15-
(web servers). Usually, this module isn't used directly, but is used
16-
as a basis for building functioning web servers. See the
15+
(Web servers). Usually, this module isn't used directly, but is used
16+
as a basis for building functioning Web servers. See the
1717
\module{SimpleHTTPServer}\refstmodindex{SimpleHTTPServer} and
1818
\refmodule{CGIHTTPServer}\refstmodindex{CGIHTTPServer} modules.
1919

2020
The first class, \class{HTTPServer}, is a
21-
\class{SocketServer.TCPServer} subclass. It creates and listens at the
22-
web socket, dispatching the requests to a handler. Code to create and
21+
\class{SocketServer.TCPServer} subclass. It creates and listens at the
22+
HTTP socket, dispatching the requests to a handler. Code to create and
2323
run the server looks like this:
2424

2525
\begin{verbatim}

Doc/lib/libcgi.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ \section{\module{cgi} ---
1212
\index{URL}
1313

1414

15-
Support module for CGI (Common Gateway Interface) scripts.%
15+
Support module for Common Gateway Interface (CGI) scripts.%
1616
\index{Common Gateway Interface}
1717

1818
This module defines a number of utilities for use by CGI scripts
@@ -294,7 +294,7 @@ \subsection{Caring about security}
294294
\function{os.system()} or \function{os.popen()} functions. or others
295295
with similar functionality), make very sure you don't pass arbitrary
296296
strings received from the client to the shell. This is a well-known
297-
security hole whereby clever hackers anywhere on the web can exploit a
297+
security hole whereby clever hackers anywhere on the Web can exploit a
298298
gullible CGI script to invoke arbitrary shell commands. Even parts of
299299
the URL or field names cannot be trusted, since the request doesn't
300300
have to come from your form!
@@ -330,7 +330,7 @@ \subsection{Installing your CGI script on a Unix system}
330330
(write, execute) files that everybody can read (write, execute). The
331331
current directory at execution time is also different (it is usually
332332
the server's cgi-bin directory) and the set of environment variables
333-
is also different from what you get at login. In particular, don't
333+
is also different from what you get when you log in. In particular, don't
334334
count on the shell's search path for executables (\envvar{PATH}) or
335335
the Python module search path (\envvar{PYTHONPATH}) to be set to
336336
anything interesting.

Doc/lib/libfl.tex

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
\section{\module{fl} ---
2-
FORMS library interface for GUI applications}
2+
FORMS library for graphical user interfaces}
33

44
\declaremodule{builtin}{fl}
55
\platform{IRIX}
6-
\modulesynopsis{FORMS library interface for GUI applications.}
6+
\modulesynopsis{FORMS library for applications with graphical user
7+
interfaces.}
78

89

910
This module provides an interface to the FORMS Library\index{FORMS

Doc/lib/libformatter.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ \subsection{Formatter Implementations \label{formatter-impls}}
200200
The standard formatter. This implementation has demonstrated wide
201201
applicability to many writers, and may be used directly in most
202202
circumstances. It has been used to implement a full-featured
203-
world-wide web browser.
203+
World Wide Web browser.
204204
\end{classdesc}
205205

206206

Doc/lib/libintro.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ \chapter{Introduction}
2424
trace; some provide interfaces that are specific to particular
2525
operating systems, such as access to specific hardware; others provide
2626
interfaces that are
27-
specific to a particular application domain, like the World-Wide Web.
27+
specific to a particular application domain, like the World Wide Web.
2828
Some modules are available in all versions and ports of Python; others
2929
are only available when the underlying system supports or requires
3030
them; yet others are available only when a particular configuration

Doc/lib/libos.tex

Lines changed: 38 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
11
\section{\module{os} ---
2-
Miscellaneous OS interfaces}
2+
Miscellaneous operating system interfaces}
33

44
\declaremodule{standard}{os}
5-
\modulesynopsis{Miscellaneous OS interfaces.}
5+
\modulesynopsis{Miscellaneous operating system interfaces.}
66

77

88
This module provides a more portable way of using operating system
9-
(OS) dependent functionality than importing an OS dependent built-in
10-
module like \refmodule{posix} or \module{nt}.
9+
dependent functionality than importing a operating system dependent
10+
built-in module like \refmodule{posix} or \module{nt}.
1111

12-
This module searches for an OS dependent built-in module like
12+
This module searches for an operating system dependent built-in module like
1313
\module{mac} or \refmodule{posix} and exports the same functions and data
14-
as found there. The design of all Python's built-in OS dependent
14+
as found there. The design of all Python's built-in operating system dependent
1515
modules is such that as long as the same functionality is available,
1616
it uses the same interface; for example, the function
1717
\code{os.stat(\var{path})} returns stat information about \var{path} in
1818
the same format (which happens to have originated with the
1919
\POSIX{} interface).
2020

21-
Extensions peculiar to a particular OS are also available through the
22-
\module{os} module, but using them is of course a threat to
23-
portability!
21+
Extensions peculiar to a particular operating system are also
22+
available through the \module{os} module, but using them is of course a
23+
threat to portability!
2424

2525
Note that after the first time \module{os} is imported, there is
2626
\emph{no} performance penalty in using functions from \module{os}
27-
instead of directly from the OS dependent built-in module, so there
28-
should be \emph{no} reason not to use \module{os}!
27+
instead of directly from the operating system dependent built-in module,
28+
so there should be \emph{no} reason not to use \module{os}!
2929

3030

3131
% Frank Stajano <[email protected]> complained that it
@@ -65,13 +65,13 @@ \section{\module{os} ---
6565
\end{excdesc}
6666

6767
\begin{datadesc}{name}
68-
The name of the OS dependent module imported. The following names
69-
have currently been registered: \code{'posix'}, \code{'nt'},
68+
The name of the operating system dependent module imported. The
69+
following names have currently been registered: \code{'posix'}, \code{'nt'},
7070
\code{'dos'}, \code{'mac'}, \code{'os2'}, \code{'ce'}, \code{'java'}.
7171
\end{datadesc}
7272

7373
\begin{datadesc}{path}
74-
The corresponding OS dependent standard module for pathname
74+
The corresponding operating system dependent standard module for pathname
7575
operations, such as \module{posixpath} or \module{macpath}. Thus,
7676
given the proper imports, \code{os.path.split(\var{file})} is
7777
equivalent to but more portable than
@@ -636,7 +636,7 @@ \subsection{Files and Directories \label{os-file-dir}}
636636
Return system configuration information relevant to a named file.
637637
\var{name} specifies the configuration value to retrieve; it may be a
638638
string which is the name of a defined system value; these names are
639-
specified in a number of standards (\POSIX.1, Unix95, Unix98, and
639+
specified in a number of standards (\POSIX.1, \UNIX 95, \UNIX 98, and
640640
others). Some platforms define additional names as well. The names
641641
known to the host operating system are given in the
642642
\code{pathconf_names} dictionary. For configuration variables not
@@ -737,9 +737,9 @@ \subsection{Files and Directories \label{os-file-dir}}
737737
\code{st_mtime},
738738
\code{st_ctime}.
739739
More items may be added at the end by some implementations. Note that
740-
on the Macintosh, the time values are floating point values, like all
741-
time values on the Macintosh.
742-
(On MS Windows, some items are filled with dummy values.)
740+
on the Mac OS, the time values are floating point values, like all
741+
time values on the Mac OS.
742+
(On Windows, some items are filled with dummy values.)
743743
Availability: Macintosh, \UNIX{}, Windows.
744744

745745
Note: The standard module \refmodule{stat}\refstmodindex{stat} defines
@@ -983,8 +983,9 @@ \subsection{Process Management \label{os-process}}
983983
\begin{funcdesc}{startfile}{path}
984984
Start a file with its associated application. This acts like
985985
double-clicking the file in Windows Explorer, or giving the file name
986-
as an argument to the DOS \program{start} command: the file is opened
987-
with whatever application (if any) its extension is associated.
986+
as an argument to the \program{start} command from the interactive
987+
command shell: the file is opened with whatever application (if any)
988+
its extension is associated.
988989

989990
\function{startfile()} returns as soon as the associated application
990991
is launched. There is no option to wait for the application to close,
@@ -1012,8 +1013,8 @@ \subsection{Process Management \label{os-process}}
10121013
\end{funcdesc}
10131014

10141015
\begin{funcdesc}{times}{}
1015-
Return a 5-tuple of floating point numbers indicating accumulated (CPU
1016-
or other)
1016+
Return a 5-tuple of floating point numbers indicating accumulated
1017+
(processor or other)
10171018
times, in seconds. The items are: user time, system time, children's
10181019
user time, children's system time, and elapsed real time since a fixed
10191020
point in the past, in that order. See the \UNIX{} manual page
@@ -1100,7 +1101,7 @@ \subsection{Miscellaneous System Information \label{os-path}}
11001101
Return string-valued system configuration values.
11011102
\var{name} specifies the configuration value to retrieve; it may be a
11021103
string which is the name of a defined system value; these names are
1103-
specified in a number of standards (\POSIX, Unix95, Unix98, and
1104+
specified in a number of standards (\POSIX, \UNIX 95, \UNIX 98, and
11041105
others). Some platforms define additional names as well. The names
11051106
known to the host operating system are given in the
11061107
\code{confstr_names} dictionary. For configuration variables not
@@ -1151,33 +1152,36 @@ \subsection{Miscellaneous System Information \label{os-path}}
11511152

11521153

11531154
\begin{datadesc}{curdir}
1154-
The constant string used by the OS to refer to the current directory.
1155+
The constant string used by the operating system to refer to the current
1156+
directory.
11551157
For example: \code{'.'} for \POSIX{} or \code{':'} for the Macintosh.
11561158
\end{datadesc}
11571159

11581160
\begin{datadesc}{pardir}
1159-
The constant string used by the OS to refer to the parent directory.
1161+
The constant string used by the operating system to refer to the parent
1162+
directory.
11601163
For example: \code{'..'} for \POSIX{} or \code{'::'} for the Macintosh.
11611164
\end{datadesc}
11621165

11631166
\begin{datadesc}{sep}
1164-
The character used by the OS to separate pathname components,
1167+
The character used by the operating system to separate pathname components,
11651168
for example, \character{/} for \POSIX{} or \character{:} for the
11661169
Macintosh. Note that knowing this is not sufficient to be able to
11671170
parse or concatenate pathnames --- use \function{os.path.split()} and
11681171
\function{os.path.join()} --- but it is occasionally useful.
11691172
\end{datadesc}
11701173

11711174
\begin{datadesc}{altsep}
1172-
An alternative character used by the OS to separate pathname components,
1173-
or \code{None} if only one separator character exists. This is set to
1174-
\character{/} on DOS and Windows systems where \code{sep} is a backslash.
1175+
An alternative character used by the operating system to separate pathname
1176+
components, or \code{None} if only one separator character exists. This is
1177+
set to \character{/} on DOS and Windows systems where \code{sep} is a
1178+
backslash.
11751179
\end{datadesc}
11761180

11771181
\begin{datadesc}{pathsep}
1178-
The character conventionally used by the OS to separate search patch
1179-
components (as in \envvar{PATH}), such as \character{:} for \POSIX{} or
1180-
\character{;} for DOS and Windows.
1182+
The character conventionally used by the operating system to separate
1183+
search patch components (as in \envvar{PATH}), such as \character{:} for
1184+
\POSIX{} or \character{;} for DOS and Windows.
11811185
\end{datadesc}
11821186

11831187
\begin{datadesc}{defpath}
@@ -1188,6 +1192,6 @@ \subsection{Miscellaneous System Information \label{os-path}}
11881192
\begin{datadesc}{linesep}
11891193
The string used to separate (or, rather, terminate) lines on the
11901194
current platform. This may be a single character, such as \code{'\e
1191-
n'} for \POSIX{} or \code{'\e r'} for MacOS, or multiple characters,
1192-
for example, \code{'\e r\e n'} for MS-DOS and MS Windows.
1195+
n'} for \POSIX{} or \code{'\e r'} for the Mac OS, or multiple characters,
1196+
for example, \code{'\e r\e n'} for DOS and Windows.
11931197
\end{datadesc}

0 commit comments

Comments
 (0)