Content-Length: 321553 | pFad | http://github.com/python/cpython/pull/136878/commits/68062445f7706548b8447379b9f1637ce07ac937

85 gh-83424: Allow empty name if handle is non-null when create ctypes.CDLL by aisk · Pull Request #136878 · python/cpython · GitHub
Skip to content

gh-83424: Allow empty name if handle is non-null when create ctypes.CDLL #136878

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove dead code
  • Loading branch information
aisk committed Jul 20, 2025
commit 68062445f7706548b8447379b9f1637ce07ac937
2 changes: 0 additions & 2 deletions Lib/ctypes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ class CFunctionType(_CFuncPtr):
return CFunctionType

if _os.name == "nt":
# from _ctypes import LoadLibrary as _dlopen
from _ctypes import LoadLibrary as _LoadLibrary
from _ctypes import FUNCFLAG_STDCALL as _FUNCFLAG_STDCALL

Expand Down Expand Up @@ -138,7 +137,6 @@ class WinFunctionType(_CFuncPtr):
WINFUNCTYPE.__doc__ = CFUNCTYPE.__doc__.replace("CFUNCTYPE", "WINFUNCTYPE")

elif _os.name == "posix":
# from _ctypes import dlopen as _dlopen
from _ctypes import dlopen as _dlopen

from _ctypes import sizeof, byref, addressof, alignment, resize
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Allows creating a :class:`ctypes.CDLL` without name when passing a handle as
an argument.
Loading








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/python/cpython/pull/136878/commits/68062445f7706548b8447379b9f1637ce07ac937

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy