Message245481
> Steve, since you haven't closed this issue, have you considered my suggestion to export _Py_ActivateActCtx and _Py_DeactivateActCtx for use by C extensions such as _ctypes.pyd? These functions are better than manually creating a context from the manifest that's embedded in python27.dll because they use the context that was active when python27.dll was initially loaded.
I'm always fairly slow to close issues - don't read too much into that :)
I don't see any value in exporting them for other C extensions, since they can also capture the initial context when they are loaded. They really need exports for Python. windll.python27._Py_ActivateActCtx would suffice and I wouldn't want to go any further than that - this is *very* advanced functionality that I would expect most people to get wrong.
Someone prepare a patch. I'm not -1 yet (and of course, I'm not the sole gatekeeper here, so one of the core devs who's still working on 2.7 can fix it too). |
|
Date |
User |
Action |
Args |
2015-06-18 20:37:08 | steve.dower | set | recipients:
+ steve.dower, paul.moore, tim.golden, zach.ware, eryksun, carlkl, erik flister |
2015-06-18 20:37:08 | steve.dower | set | messageid: <1434659828.94.0.261279553355.issue24429@psf.upfronthosting.co.za> |
2015-06-18 20:37:08 | steve.dower | link | issue24429 messages |
2015-06-18 20:37:08 | steve.dower | create | |
|