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
328284ad
Commit
328284ad
authored
May 02, 2010
by
Mark Dickinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve error message from nb_int returning a non-integer, in various PyInt_As* functions:
parent
8651810d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Objects/intobject.c
Objects/intobject.c
+4
-4
No files found.
Objects/intobject.c
View file @
328284ad
...
...
@@ -178,7 +178,7 @@ PyInt_AsLong(register PyObject *op)
{
Py_DECREF
(
io
);
PyErr_SetString
(
PyExc_TypeError
,
"nb_int should return int object
"
);
"__int__ method should return an integer
"
);
return
-
1
;
}
}
...
...
@@ -236,7 +236,7 @@ PyInt_AsSsize_t(register PyObject *op)
{
Py_DECREF
(
io
);
PyErr_SetString
(
PyExc_TypeError
,
"nb_int should return int object
"
);
"__int__ method should return an integer
"
);
return
-
1
;
}
}
...
...
@@ -281,7 +281,7 @@ PyInt_AsUnsignedLongMask(register PyObject *op)
{
Py_DECREF
(
io
);
PyErr_SetString
(
PyExc_TypeError
,
"nb_int should return int object
"
);
"__int__ method should return an integer
"
);
return
(
unsigned
long
)
-
1
;
}
}
...
...
@@ -326,7 +326,7 @@ PyInt_AsUnsignedLongLongMask(register PyObject *op)
{
Py_DECREF
(
io
);
PyErr_SetString
(
PyExc_TypeError
,
"nb_int should return int object
"
);
"__int__ method should return an integer
"
);
return
(
unsigned
PY_LONG_LONG
)
-
1
;
}
}
...
...
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