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
9d67d5e9
Commit
9d67d5e9
authored
May 25, 2006
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Someone seems to just have copy-pasted the docs of
tp_compare to tp_richcompare ;)
parent
66c0935d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Doc/api/newtypes.tex
Doc/api/newtypes.tex
+4
-4
No files found.
Doc/api/newtypes.tex
View file @
9d67d5e9
...
...
@@ -990,10 +990,10 @@ The following three fields only exist if the
An optional pointer to the rich comparison function.
The signature is the same as for
\cfunction
{
PyObject
_
RichCompare()
}
.
The function should return
\code
{
1
}
if the requested comparison
returns true,
\code
{
0
}
if it returns false. It should return
\code
{
-1
}
and set an exception condition when an
error occurred
during the comparis
on.
The function should return
the result of the comparison (usually
\code
{
Py
_
True
}
or
\code
{
Py
_
False
}
). If the comparison is undefined,
it must return
\code
{
Py
_
NotImplemented
}
, if another
error occurred
it must return
\code
{
NULL
}
and set an exception conditi
on.
This field is inherited by subtypes together with
\member
{
tp
_
compare
}
and
\member
{
tp
_
hash
}
: a subtype inherits all
...
...
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