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
c9b20734
Commit
c9b20734
authored
Jan 28, 2008
by
Thomas Heller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert rev. 59926, it breaks comtypes (I need to further examine this).
parent
249cbe79
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
13 deletions
+0
-13
Lib/ctypes/test/test_funcptr.py
Lib/ctypes/test/test_funcptr.py
+0
-6
Misc/NEWS
Misc/NEWS
+0
-2
Modules/_ctypes/_ctypes.c
Modules/_ctypes/_ctypes.c
+0
-5
No files found.
Lib/ctypes/test/test_funcptr.py
View file @
c9b20734
...
...
@@ -123,11 +123,5 @@ class CFuncPtrTestCase(unittest.TestCase):
self
.
failUnlessEqual
(
strtok
(
None
,
"
\
n
"
),
"c"
)
self
.
failUnlessEqual
(
strtok
(
None
,
"
\
n
"
),
None
)
def
test_NULL_funcptr
(
self
):
tp
=
CFUNCTYPE
(
c_int
)
func
=
tp
()
# NULL function pointer
# raise a ValueError when we try to call it
self
.
assertRaises
(
ValueError
,
func
)
if
__name__
==
'__main__'
:
unittest
.
main
()
Misc/NEWS
View file @
c9b20734
...
...
@@ -217,8 +217,6 @@ Extension Modules
-
Fix
a
potential
'SystemError: NULL result without error'
in
_ctypes
.
-
Prevent
a
segfault
when
a
ctypes
NULL
function
pointer
is
called
.
-
Bug
#
1301
:
Bad
assert
in
_tkinter
fixed
.
-
Patch
#
1114
:
fix
curses
module
compilation
on
64
-
bit
AIX
,
&
possibly
...
...
Modules/_ctypes/_ctypes.c
View file @
c9b20734
...
...
@@ -3305,11 +3305,6 @@ CFuncPtr_call(CFuncPtrObject *self, PyObject *inargs, PyObject *kwds)
pProc
=
*
(
void
**
)
self
->
b_ptr
;
if
(
pProc
==
NULL
)
{
PyErr_SetString
(
PyExc_ValueError
,
"attempt to call NULL function pointer"
);
return
NULL
;
}
#ifdef MS_WIN32
if
(
self
->
index
)
{
/* It's a COM method */
...
...
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