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
7a7e04e4
Commit
7a7e04e4
authored
Jan 13, 2017
by
Serhiy Storchaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #29219: Fixed infinite recursion in the repr of uninitialized
ctypes.CDLL instances.
parent
99ba17f5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
Lib/ctypes/__init__.py
Lib/ctypes/__init__.py
+4
-0
Misc/NEWS
Misc/NEWS
+3
-0
No files found.
Lib/ctypes/__init__.py
View file @
7a7e04e4
...
@@ -342,6 +342,10 @@ class CDLL(object):
...
@@ -342,6 +342,10 @@ class CDLL(object):
"""
"""
_func_flags_
=
_FUNCFLAG_CDECL
_func_flags_
=
_FUNCFLAG_CDECL
_func_restype_
=
c_int
_func_restype_
=
c_int
# default values for repr
_name
=
'<uninitialized>'
_handle
=
0
_FuncPtr
=
None
def
__init__
(
self
,
name
,
mode
=
DEFAULT_MODE
,
handle
=
None
,
def
__init__
(
self
,
name
,
mode
=
DEFAULT_MODE
,
handle
=
None
,
use_errno
=
False
,
use_errno
=
False
,
...
...
Misc/NEWS
View file @
7a7e04e4
...
@@ -23,6 +23,9 @@ Extension Modules
...
@@ -23,6 +23,9 @@ Extension Modules
Library
Library
-------
-------
- Issue #29219: Fixed infinite recursion in the repr of uninitialized
ctypes.CDLL instances.
- Issue #29082: Fixed loading libraries in ctypes by unicode names on Windows.
- Issue #29082: Fixed loading libraries in ctypes by unicode names on Windows.
Original patch by Chi Hsuan Yen.
Original patch by Chi Hsuan Yen.
...
...
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