Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
12a70cfb
Commit
12a70cfb
authored
Aug 12, 2003
by
Raymond Hettinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SF patch#786531 'the the' typo. Contributed by George Yoshida
parent
56436d36
Changes
11
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
13 additions
and
13 deletions
+13
-13
Doc/api/init.tex
Doc/api/init.tex
+1
-1
Doc/ext/newtypes.tex
Doc/ext/newtypes.tex
+1
-1
Doc/lib/libcgi.tex
Doc/lib/libcgi.tex
+1
-1
Doc/lib/libcodecs.tex
Doc/lib/libcodecs.tex
+1
-1
Doc/lib/libcurses.tex
Doc/lib/libcurses.tex
+3
-3
Doc/lib/libdoctest.tex
Doc/lib/libdoctest.tex
+1
-1
Doc/lib/libfuncs.tex
Doc/lib/libfuncs.tex
+1
-1
Doc/lib/libgettext.tex
Doc/lib/libgettext.tex
+1
-1
Doc/lib/libpickle.tex
Doc/lib/libpickle.tex
+1
-1
Doc/lib/libre.tex
Doc/lib/libre.tex
+1
-1
Doc/lib/libstdwin.tex
Doc/lib/libstdwin.tex
+1
-1
No files found.
Doc/api/init.tex
View file @
12a70cfb
...
...
@@ -780,7 +780,7 @@ previous versions.
\end{cfuncdesc}
\begin{cfuncdesc}
{
void
}{
PyEval
_
SetTrace
}{
Py
_
tracefunc func, PyObject *obj
}
Set the t
he t
racing function to
\var
{
func
}
. This is similar to
Set the tracing function to
\var
{
func
}
. This is similar to
\cfunction
{
PyEval
_
SetProfile()
}
, except the tracing function does
receive line-number events.
\end{cfuncdesc}
...
...
Doc/ext/newtypes.tex
View file @
12a70cfb
...
...
@@ -1407,7 +1407,7 @@ Python.
In order to learn how to implement any specific method for your new
datatype, do the following: Download and unpack the Python source
distribution. Go the
the
\file
{
Objects
}
directory, then search the
distribution. Go the
\file
{
Objects
}
directory, then search the
C source files for
\code
{
tp
_}
plus the function you want
(
for
example,
\code
{
tp
_
print
}
or
\code
{
tp
_
compare
}
)
. You will find
examples of the function you want to implement.
...
...
Doc/lib/libcgi.tex
View file @
12a70cfb
...
...
@@ -101,7 +101,7 @@ dictionary, and also supports the standard dictionary methods
\method
{
has
_
key()
}
and
\method
{
keys()
}
. The built-in
\function
{
len()
}
is also supported. Form fields containing empty strings are ignored
and do not appear in the dictionary; to keep such values, provide
a true value for the
the
optional
\var
{
keep
_
blank
_
values
}
keyword
a true value for the optional
\var
{
keep
_
blank
_
values
}
keyword
parameter when creating the
\class
{
FieldStorage
}
instance.
For instance, the following code (which assumes that the
...
...
Doc/lib/libcodecs.tex
View file @
12a70cfb
...
...
@@ -505,7 +505,7 @@ the \function{lookup()} function to construct the instance.
\var
{
encode
}
,
\var
{
decode
}
must adhere to the
\class
{
Codec
}
interface,
\var
{
Reader
}
,
\var
{
Writer
}
must be factory functions or
classes providing objects of the
the
\class
{
StreamReader
}
and
classes providing objects of the
\class
{
StreamReader
}
and
\class
{
StreamWriter
}
interface respectively.
\var
{
encode
}
and
\var
{
decode
}
are needed for the frontend
...
...
Doc/lib/libcurses.tex
View file @
12a70cfb
...
...
@@ -337,7 +337,7 @@ occur. The \method{refresh()} and \method{noutrefresh()} methods of a
pad require 6 arguments to specify the part of the pad to be
displayed and the location on the screen to be used for the display.
The arguments are pminrow, pmincol, sminrow, smincol, smaxrow,
smaxcol; the p arguments refer to the upper left corner of the
the
pad
smaxcol; the p arguments refer to the upper left corner of the pad
region to be displayed and the s arguments define a clipping box on
the screen within which the pad region is to be displayed.
\end{funcdesc}
...
...
@@ -790,7 +790,7 @@ before the character under the cursor, up to \var{n} characters.
If
\var
{
n
}
is zero or negative,
the entire string is inserted.
All characters to the right of
the cursor are shifted right, with the
the
rightmost characters on the
the cursor are shifted right, with the rightmost characters on the
line being lost. The cursor position does not change (after moving to
\var
{
y
}
,
\var
{
x
}
, if specified).
\end{methoddesc}
...
...
@@ -798,7 +798,7 @@ line being lost. The cursor position does not change (after moving to
\begin{methoddesc}
[window]
{
insstr
}{
\optional
{
y, x,
}
str
\optional
{
, attr
}}
Insert a character string (as many characters as will fit on the line)
before the character under the cursor. All characters to the right of
the cursor are shifted right, with the
the
rightmost characters on the
the cursor are shifted right, with the rightmost characters on the
line being lost. The cursor position does not change (after moving to
\var
{
y
}
,
\var
{
x
}
, if specified).
\end{methoddesc}
...
...
Doc/lib/libdoctest.tex
View file @
12a70cfb
...
...
@@ -199,7 +199,7 @@ imported into the module are not searched.
In addition, if
\code
{
M.
__
test
__}
exists and "is true", it must be a
dict, and each entry maps a (string) name to a function object, class
object, or string. Function and class object docstrings found from
\code
{
M.
__
test
__}
are searched even if the t
he t
ester has been
\code
{
M.
__
test
__}
are searched even if the tester has been
directed to skip over private names in the rest of the module.
In output, a key
\code
{
K
}
in
\code
{
M.
__
test
__}
appears with name
...
...
Doc/lib/libfuncs.tex
View file @
12a70cfb
...
...
@@ -68,7 +68,7 @@ def my_import(name):
is the length of the tuple.
If the optional
\var
{
keywords
}
argument is present, it must be a
dictionary whose keys are strings. It specifies keyword arguments
to be added to the end of the
the
argument list.
to be added to the end of the argument list.
Calling
\function
{
apply()
}
is different from just calling
\code
{
\var
{
function
}
(
\var
{
args
}
)
}
, since in that case there is always
exactly one argument. The use of
\function
{
apply()
}
is equivalent
...
...
Doc/lib/libgettext.tex
View file @
12a70cfb
...
...
@@ -391,7 +391,7 @@ print _('hello world')
\end{verbatim}
For compatibility with this older module, the function
\function
{
Catalog()
}
is an alias for the
the
\function
{
translation()
}
\function
{
Catalog()
}
is an alias for the
\function
{
translation()
}
function described above.
One difference between this module and Henstridge's: his catalog
...
...
Doc/lib/libpickle.tex
View file @
12a70cfb
...
...
@@ -657,7 +657,7 @@ which will work in either \module{pickle} or \module{cPickle}.}.
In the
\module
{
pickle
}
module, you need to derive a subclass from
\class
{
Unpickler
}
, overriding the
\method
{
load
_
global()
}
method.
\method
{
load
_
global()
}
should read two lines from the pickle
data stream where the first line will the
the
name of the module
data stream where the first line will the name of the module
containing the class and the second line will be the name of the
instance's class. It then looks up the class, possibly importing the
module and digging out the attribute, then it appends what it finds to
...
...
Doc/lib/libre.tex
View file @
12a70cfb
...
...
@@ -740,7 +740,7 @@ Without arguments, \var{group1} defaults to zero (the whole match
is returned).
If a
\var
{
groupN
}
argument is zero, the corresponding return value is the
entire matching string; if it is in the inclusive range [1..99], it is
the string matching the
the
corresponding parenthesized group. If a
the string matching the corresponding parenthesized group. If a
group number is negative or larger than the number of groups defined
in the pattern, an
\exception
{
IndexError
}
exception is raised.
If a group is contained in a part of the pattern that did not match,
...
...
Doc/lib/libstdwin.tex
View file @
12a70cfb
...
...
@@ -393,7 +393,7 @@ On X11, there are many more (see \code{<X11/cursorfont.h>}).
\end{methoddesc}
\begin{methoddesc}
[window]
{
setwinpos
}{
h, v
}
Set the
the
position of the window's upper left corner (relative to
Set the position of the window's upper left corner (relative to
the upper left corner of the screen).
\end{methoddesc}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment