This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients amaury.forgeotdarc, belopolsky, lepaperwan, meador.inge, terry.reedy
Date 2016-08-26.17:54:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1472234066.54.0.935217361657.issue27803@psf.upfronthosting.co.za>
In-reply-to
Content
I ran the the following, which I don't understand, and therefore don't what should happen, on Win 10, 3.6.0a3.

from ctypes import *
from ctypes.wintypes import *

class CustomPHKEY(object):
    def __init__(self, value):
        self._as_parameter_ = HKEY(value)

function = windll.function
function.argtypes = [POINTER(HKEY)]
function.restype = LONG
result = CustomPHKEY(0)
function(result)

Traceback (most recent call last):
  File "F:\Python\mypy\tem.py", line 8, in <module>
    function = windll.function
  File "C:\Programs\Python36\lib\ctypes\__init__.py", line 417, in __getattr__
    dll = self._dlltype(name)
  File "C:\Programs\Python36\lib\ctypes\__init__.py", line 347, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: [WinError 126] The specified module could not be found
History
Date User Action Args
2016-08-26 17:54:26terry.reedysetrecipients: + terry.reedy, amaury.forgeotdarc, belopolsky, meador.inge, lepaperwan
2016-08-26 17:54:26terry.reedysetmessageid: <1472234066.54.0.935217361657.issue27803@psf.upfronthosting.co.za>
2016-08-26 17:54:26terry.reedylinkissue27803 messages
2016-08-26 17:54:26terry.reedycreate