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
fbe56bb8
Commit
fbe56bb8
authored
May 24, 2011
by
Benjamin Peterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use '->' to indicate return values
parent
a7cdb0f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Objects/typeobject.c
Objects/typeobject.c
+3
-3
No files found.
Objects/typeobject.c
View file @
fbe56bb8
...
...
@@ -2515,9 +2515,9 @@ static PyMethodDef type_methods[] = {
PyDoc_STR
(
"__prepare__() -> dict
\n
"
"used to create the namespace for the class statement"
)},
{
"__instancecheck__"
,
type___instancecheck__
,
METH_O
,
PyDoc_STR
(
"__instancecheck__() -> check if an object is an instance"
)},
PyDoc_STR
(
"__instancecheck__() ->
bool
\n
check if an object is an instance"
)},
{
"__subclasscheck__"
,
type___subclasscheck__
,
METH_O
,
PyDoc_STR
(
"__subclasscheck__() -> check if a class is a subclass"
)},
PyDoc_STR
(
"__subclasscheck__() ->
bool
\n
check if a class is a subclass"
)},
{
0
}
};
...
...
@@ -3354,7 +3354,7 @@ static PyMethodDef object_methods[] = {
{
"__format__"
,
object_format
,
METH_VARARGS
,
PyDoc_STR
(
"default object formatter"
)},
{
"__sizeof__"
,
object_sizeof
,
METH_NOARGS
,
PyDoc_STR
(
"__sizeof__() -> size of object in memory, in bytes"
)},
PyDoc_STR
(
"__sizeof__() ->
int
\n
size of object in memory, in bytes"
)},
{
0
}
};
...
...
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