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
3e06faec
Commit
3e06faec
authored
Oct 18, 2008
by
Thomas Heller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modify ctypes types with 'official' functions. Backport from trunk,
snv rev 59943 and 59946.
parent
14121854
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
Misc/NEWS
Misc/NEWS
+3
-0
Modules/_ctypes/_ctypes.c
Modules/_ctypes/_ctypes.c
+1
-1
No files found.
Misc/NEWS
View file @
3e06faec
...
...
@@ -92,6 +92,9 @@ Core and builtins
Library
-------
-
Assigning
methods
to
ctypes
.
Structure
and
ctypes
.
Union
subclasses
after
creation
of
the
class
does
now
work
correctly
.
See
Issue
#
1700288.
-
Issue
#
3895
:
_lsprof
could
be
crashed
with
an
external
timer
that
did
not
return
a
float
when
a
Profiler
object
is
garbage
collected
.
...
...
Modules/_ctypes/_ctypes.c
View file @
3e06faec
...
...
@@ -410,7 +410,7 @@ static int
StructType_setattro
(
PyObject
*
self
,
PyObject
*
key
,
PyObject
*
value
)
{
/* XXX Should we disallow deleting _fields_? */
if
(
-
1
==
Py
Object_GenericSetAttr
(
self
,
key
,
value
))
if
(
-
1
==
Py
Type_Type
.
tp_setattro
(
self
,
key
,
value
))
return
-
1
;
if
(
value
&&
PyString_Check
(
key
)
&&
...
...
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