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
2619c9ec
Commit
2619c9ec
authored
Dec 07, 2003
by
Raymond Hettinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SF patch #838938: Typos in the docs (Extending/Embedding + Python/C API)
(Contributed by Florent Rougon.)
parent
e3d5f981
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
9 deletions
+8
-9
Doc/api/abstract.tex
Doc/api/abstract.tex
+1
-1
Doc/api/exceptions.tex
Doc/api/exceptions.tex
+2
-3
Doc/api/newtypes.tex
Doc/api/newtypes.tex
+3
-3
Doc/ext/newtypes.tex
Doc/ext/newtypes.tex
+2
-2
No files found.
Doc/api/abstract.tex
View file @
2619c9ec
...
...
@@ -267,7 +267,7 @@ determination.
\begin{cfuncdesc}
{
PyObject*
}{
PyObject
_
CallMethod
}{
PyObject *o,
char *method, char *format,
\moreargs
}
Call the method named
\var
{
m
}
of object
\var
{
o
}
with a variable
Call the method named
\var
{
m
ethod
}
of object
\var
{
o
}
with a variable
number of C arguments. The C arguments are described by a
\cfunction
{
Py
_
BuildValue()
}
format string. The format may be
\NULL
,
indicating that no arguments are provided. Returns the result of the
...
...
Doc/api/exceptions.tex
View file @
2619c9ec
...
...
@@ -331,9 +331,8 @@ for each thread.
example, when an exception occurs in an
\method
{__
del
__
()
}
method.
The function is called with a single argument
\var
{
obj
}
that
identifies where the context in which the unraisable exception
occurred. The repr of
\var
{
obj
}
will be printed in the warning
message.
identifies the context in which the unraisable exception occurred.
The repr of
\var
{
obj
}
will be printed in the warning message.
\end{cfuncdesc}
\section
{
Standard Exceptions
\label
{
standardExceptions
}}
...
...
Doc/api/newtypes.tex
View file @
2619c9ec
...
...
@@ -166,7 +166,7 @@ These macros are used in the definition of \ctype{PyObject} and
This is a macro which expands to the declarations of the fields of
the
\ctype
{
PyObject
}
type; it is used when declaring new types which
represent objects without a varying length. The specific fields it
expands to depend
s
on the definition of
expands to depend on the definition of
\csimplemacro
{
Py
_
TRACE
_
REFS
}
. By default, that macro is not
defined, and
\csimplemacro
{
PyObject
_
HEAD
}
expands to:
\begin{verbatim}
...
...
@@ -397,7 +397,7 @@ Foo_Type.ob_type = &PyType_Type;
This should be done before any instances of the type are created.
\cfunction
{
PyType
_
Ready()
}
checks if
\member
{
ob
_
type
}
is
\NULL
, and
if so, initializes it: in Python 2.2, it is set to
\code
{
\&
PyType
_
Type
}
; in Python 2.2.1 and later it
will be
\code
{
\&
PyType
_
Type
}
; in Python 2.2.1 and later it
is
initialized to the
\member
{
ob
_
type
}
field of the base class.
\cfunction
{
PyType
_
Ready()
}
will not change this field if it is
non-zero.
...
...
@@ -704,7 +704,7 @@ PyMappingMethods *tp_as_mapping;
\end{cmemberdesc}
\begin{cmemberdesc}
{
PyTypeObject
}{
PyBufferProcs*
}{
tp
_
as
_
buffer
}
Pointer to an additional structure contains fields relevant only to
Pointer to an additional structure
that
contains fields relevant only to
objects which implement the buffer interface. These fields are
documented in ``Buffer Object Structures'' (section
\ref
{
buffer-structs
}
).
...
...
Doc/ext/newtypes.tex
View file @
2619c9ec
...
...
@@ -537,7 +537,7 @@ and assign them to the \member{tp_methods} slot:
Noddy
_
methods,
/*
tp
_
methods
*/
\end
{
verbatim
}
Note that used the
\constant
{
METH
_
NOARGS
}
flag to indicate that the
Note that
we
used the
\constant
{
METH
_
NOARGS
}
flag to indicate that the
method is passed no arguments.
Finally, we'll make our type usable as a base class. We've written
...
...
@@ -683,7 +683,7 @@ when objects are involved in cycles. For example, consider:
\end
{
verbatim
}
In this example, we create a list that contains itself. When we delete
it, it still has a reference from itself. It
'
s reference count doesn't
it, it still has a reference from itself. Its reference count doesn't
drop to zero. Fortunately, Python's cyclic
-
garbage collector will
eventually figure out that the list is garbage and free it.
...
...
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