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

Skip to content

Commit 16cd7f9

Browse files
committed
Moved author and date to boilerplate.tex.
Added copyright.tex to all files. Added descr of check_interval to libsys.tex. Corrected lotsa typos in tut.tex (thanks to George M. Sipe). Corrected mktuple (should be newtupleobject) example in ext.tex.
1 parent d8336c2 commit 16cd7f9

14 files changed

Lines changed: 132 additions & 90 deletions

File tree

Doc/boilerplate.tex

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
\author{
2+
Guido van Rossum \\
3+
Dept. CST, CWI, P.O. Box 94079 \\
4+
1090 GB Amsterdam, The Netherlands \\
5+
E-mail: {\tt [email protected]}
6+
}
7+
8+
\date{6 Oct 1994 \\ Release 1.1} % XXX update before release!

Doc/copyright.tex

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Copyright 1991, 1992, 1993, 1994 by Stichting Mathematisch Centrum,
2+
Amsterdam, The Netherlands.
3+
4+
\begin{center}
5+
All Rights Reserved
6+
\end{center}
7+
8+
Permission to use, copy, modify, and distribute this software and its
9+
documentation for any purpose and without fee is hereby granted,
10+
provided that the above copyright notice appear in all copies and that
11+
both that copyright notice and this permission notice appear in
12+
supporting documentation, and that the names of Stichting Mathematisch
13+
Centrum or CWI not be used in advertising or publicity pertaining to
14+
distribution of the software without specific, written prior permission.
15+
16+
STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO
17+
THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
18+
FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE
19+
FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
20+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
21+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
22+
OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

Doc/ext.tex

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,7 @@
22

33
\title{Extending and Embedding the Python Interpreter}
44

5-
\author{
6-
Guido van Rossum \\
7-
Dept. CST, CWI, P.O. Box 94079 \\
8-
1090 GB Amsterdam, The Netherlands \\
9-
E-mail: {\tt [email protected]}
10-
}
11-
12-
\date{14 July 1994 \\ Release 1.0.3} % XXX update before release!
5+
\input{boilerplate}
136

147
% Tell \index to actually write the .idx file
158
\makeindex
@@ -20,6 +13,8 @@
2013

2114
\maketitle
2215

16+
\input{copyright}
17+
2318
\begin{abstract}
2419

2520
\noindent
@@ -427,7 +422,7 @@ \section{Calling Python functions from C}
427422
object *result;
428423
...
429424
/* Time to call the callback */
430-
arglist = mktuple(0);
425+
arglist = newtupleobject(0);
431426
result = call_object(my_callback, arglist);
432427
DECREF(arglist);
433428
\end{verbatim}

Doc/ext/ext.tex

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,7 @@
22

33
\title{Extending and Embedding the Python Interpreter}
44

5-
\author{
6-
Guido van Rossum \\
7-
Dept. CST, CWI, P.O. Box 94079 \\
8-
1090 GB Amsterdam, The Netherlands \\
9-
E-mail: {\tt [email protected]}
10-
}
11-
12-
\date{14 July 1994 \\ Release 1.0.3} % XXX update before release!
5+
\input{boilerplate}
136

147
% Tell \index to actually write the .idx file
158
\makeindex
@@ -20,6 +13,8 @@
2013

2114
\maketitle
2215

16+
\input{copyright}
17+
2318
\begin{abstract}
2419

2520
\noindent
@@ -427,7 +422,7 @@ \section{Calling Python functions from C}
427422
object *result;
428423
...
429424
/* Time to call the callback */
430-
arglist = mktuple(0);
425+
arglist = newtupleobject(0);
431426
result = call_object(my_callback, arglist);
432427
DECREF(arglist);
433428
\end{verbatim}

Doc/lib.tex

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,7 @@
22

33
\title{Python Library Reference}
44

5-
\author{
6-
Guido van Rossum \\
7-
Dept. CST, CWI, P.O. Box 94079 \\
8-
1090 GB Amsterdam, The Netherlands \\
9-
E-mail: {\tt [email protected]}
10-
}
11-
12-
\date{14 July 1994 \\ Release 1.0.3} % XXX update before release!
5+
\input{boilerplate}
136

147
\makeindex % tell \index to actually write the .idx file
158

@@ -20,6 +13,8 @@
2013

2114
\maketitle
2215

16+
\input{copyright}
17+
2318
\begin{abstract}
2419

2520
\noindent

Doc/lib/lib.tex

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,7 @@
22

33
\title{Python Library Reference}
44

5-
\author{
6-
Guido van Rossum \\
7-
Dept. CST, CWI, P.O. Box 94079 \\
8-
1090 GB Amsterdam, The Netherlands \\
9-
E-mail: {\tt [email protected]}
10-
}
11-
12-
\date{14 July 1994 \\ Release 1.0.3} % XXX update before release!
5+
\input{boilerplate}
136

147
\makeindex % tell \index to actually write the .idx file
158

@@ -20,6 +13,8 @@
2013

2114
\maketitle
2215

16+
\input{copyright}
17+
2318
\begin{abstract}
2419

2520
\noindent

Doc/lib/libsys.tex

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,15 @@ \section{Built-in Module \sectcode{sys}}
2020
modules.)
2121
\end{datadesc}
2222

23+
\begin{datadesc}{check_interval}
24+
When this variable is set to an integer value, it determines how often
25+
the interpreter checks for periodic things such as thread switches and
26+
signal handlers. The default is 10, meaning the check is performed
27+
every 10 Python virtual instructions. Setting this to a large value
28+
may increase performance for programs using threads. Setting it to a
29+
value <= 0 checks every virtual instruction, maximizing responsiveness
30+
as well as overhead.
31+
2332
\begin{datadesc}{exc_type}
2433
\dataline{exc_value}
2534
\dataline{exc_traceback}

Doc/libsys.tex

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,15 @@ \section{Built-in Module \sectcode{sys}}
2020
modules.)
2121
\end{datadesc}
2222

23+
\begin{datadesc}{check_interval}
24+
When this variable is set to an integer value, it determines how often
25+
the interpreter checks for periodic things such as thread switches and
26+
signal handlers. The default is 10, meaning the check is performed
27+
every 10 Python virtual instructions. Setting this to a large value
28+
may increase performance for programs using threads. Setting it to a
29+
value <= 0 checks every virtual instruction, maximizing responsiveness
30+
as well as overhead.
31+
2332
\begin{datadesc}{exc_type}
2433
\dataline{exc_value}
2534
\dataline{exc_traceback}

Doc/ref.tex

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,7 @@
22

33
\title{Python Reference Manual}
44

5-
\author{
6-
Guido van Rossum \\
7-
Dept. CST, CWI, P.O. Box 94079 \\
8-
1090 GB Amsterdam, The Netherlands \\
9-
E-mail: {\tt [email protected]}
10-
}
11-
12-
\date{14 July 1994 \\ Release 1.0.3} % XXX update before release!
5+
\input{boilerplate}
136

147
% Tell \index to actually write the .idx file
158
\makeindex
@@ -20,6 +13,8 @@
2013

2114
\maketitle
2215

16+
\input{copyright}
17+
2318
\begin{abstract}
2419

2520
\noindent

Doc/ref/ref.tex

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,7 @@
22

33
\title{Python Reference Manual}
44

5-
\author{
6-
Guido van Rossum \\
7-
Dept. CST, CWI, P.O. Box 94079 \\
8-
1090 GB Amsterdam, The Netherlands \\
9-
E-mail: {\tt [email protected]}
10-
}
11-
12-
\date{14 July 1994 \\ Release 1.0.3} % XXX update before release!
5+
\input{boilerplate}
136

147
% Tell \index to actually write the .idx file
158
\makeindex
@@ -20,6 +13,8 @@
2013

2114
\maketitle
2215

16+
\input{copyright}
17+
2318
\begin{abstract}
2419

2520
\noindent

0 commit comments

Comments
 (0)