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

Skip to content

Commit 6b686e9

Browse files
committed
correct typo; document sys.platform
1 parent fb502e9 commit 6b686e9

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

Doc/lib/libsys.tex

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ \section{Built-in Module \sectcode{sys}}
5252
This value is not actually defined by the module, but can be set by
5353
the user (or by a program) to specify a clean-up action at program
5454
exit. When set, it should be a parameterless function. This function
55-
will be called when the interpreter exits in any way (except not when a
55+
will be called when the interpreter exits in any way (except when a
5656
fatal error occurs: in that case the interpreter's internal state
5757
cannot be trusted).
5858
\end{datadesc}
@@ -81,6 +81,11 @@ \section{Built-in Module \sectcode{sys}}
8181
installation-dependent default.
8282
\end{datadesc}
8383

84+
\begin{datadesc}{platform}
85+
This string contains a platform identifier. This can be used to
86+
append platform-specific components to \code{sys.path}, for instance.
87+
\end{datadesc}
88+
8489
\begin{datadesc}{ps1}
8590
\dataline{ps2}
8691
Strings specifying the primary and secondary prompt of the

Doc/libsys.tex

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ \section{Built-in Module \sectcode{sys}}
5252
This value is not actually defined by the module, but can be set by
5353
the user (or by a program) to specify a clean-up action at program
5454
exit. When set, it should be a parameterless function. This function
55-
will be called when the interpreter exits in any way (except not when a
55+
will be called when the interpreter exits in any way (except when a
5656
fatal error occurs: in that case the interpreter's internal state
5757
cannot be trusted).
5858
\end{datadesc}
@@ -81,6 +81,11 @@ \section{Built-in Module \sectcode{sys}}
8181
installation-dependent default.
8282
\end{datadesc}
8383

84+
\begin{datadesc}{platform}
85+
This string contains a platform identifier. This can be used to
86+
append platform-specific components to \code{sys.path}, for instance.
87+
\end{datadesc}
88+
8489
\begin{datadesc}{ps1}
8590
\dataline{ps2}
8691
Strings specifying the primary and secondary prompt of the

0 commit comments

Comments
 (0)