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
49450275
Commit
49450275
authored
Sep 28, 2012
by
Jesus Cea
Browse files
Options
Browse Files
Download
Plain Diff
MERGE: Closes #15953: Incorrect some fields declaration in the PyTypeObject documentation
parents
d5dc6e50
33b5769d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Doc/extending/newtypes.rst
Doc/extending/newtypes.rst
+3
-3
No files found.
Doc/extending/newtypes.rst
View file @
49450275
...
@@ -1277,9 +1277,9 @@ that the slots are present and should be checked by the interpreter. (The flag
...
@@ -1277,9 +1277,9 @@ that the slots are present and should be checked by the interpreter. (The flag
bit does not indicate that the slot values are non-*NULL*. The flag may be set
bit does not indicate that the slot values are non-*NULL*. The flag may be set
to indicate the presence of a slot, but a slot may still be unfilled.) ::
to indicate the presence of a slot, but a slot may still be unfilled.) ::
PyNumberMethods tp_as_number;
PyNumberMethods
*
tp_as_number;
PySequenceMethods tp_as_sequence;
PySequenceMethods
*
tp_as_sequence;
PyMappingMethods tp_as_mapping;
PyMappingMethods
*
tp_as_mapping;
If you wish your object to be able to act like a number, a sequence, or a
If you wish your object to be able to act like a number, a sequence, or a
mapping object, then you place the address of a structure that implements the C
mapping object, then you place the address of a structure that implements the C
...
...
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