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
342e2a82
Commit
342e2a82
authored
Jul 24, 2006
by
Martin v. Löwis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Patch #1448199: Release GIL around ConnectRegistry.
parent
aae45e4a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
0 deletions
+7
-0
Lib/test/test_winreg.py
Lib/test/test_winreg.py
+3
-0
Misc/NEWS
Misc/NEWS
+2
-0
PC/_winreg.c
PC/_winreg.c
+2
-0
No files found.
Lib/test/test_winreg.py
View file @
342e2a82
...
...
@@ -151,3 +151,6 @@ if remote_name is not None:
else
:
print
"Remote registry calls can be tested using"
,
print
"'test_winreg.py --remote
\
\
\
\
machine_name'"
# perform minimal ConnectRegistry test which just invokes it
h
=
ConnectRegistry
(
None
,
HKEY_LOCAL_MACHINE
)
h
.
Close
()
Misc/NEWS
View file @
342e2a82
...
...
@@ -61,6 +61,8 @@ Library
Extension
Modules
-----------------
-
Patch
#
1448199
:
Release
interpreter
lock
in
_winreg
.
ConnectRegistry
.
-
Patch
#
1521817
:
Index
range
checking
on
ctypes
arrays
containing
exactly
one
element
enabled
again
.
This
allows
iterating
over
these
arrays
,
without
the
need
to
check
the
array
size
before
.
...
...
PC/_winreg.c
View file @
342e2a82
...
...
@@ -960,7 +960,9 @@ PyConnectRegistry(PyObject *self, PyObject *args)
return
NULL
;
if
(
!
PyHKEY_AsHKEY
(
obKey
,
&
hKey
,
FALSE
))
return
NULL
;
Py_BEGIN_ALLOW_THREADS
rc
=
RegConnectRegistry
(
szCompName
,
hKey
,
&
retKey
);
Py_END_ALLOW_THREADS
if
(
rc
!=
ERROR_SUCCESS
)
return
PyErr_SetFromWindowsErrWithFunction
(
rc
,
"ConnectRegistry"
);
...
...
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