On 8/25/2013 7:54 AM, Stefan Behnel wrote:
And what if you do "from extmodule import some_function" in a Python
module? Then reloading couldn't replace that reference, just as for normal
Python modules. Meaning that you'd still have to keep both modules properly
alive in order to prevent crashes
Hi,
thanks for bringing this up. It clearly shows that there is more to this
problem than I initially thought.
Let me just add one idea that your post gave me.
PJ Eby, 25.08.2013 06:12:
> My "Importing" package offers lazy imports by creating module objects
> in sys.modules that are a subtype of
Nick Coghlan, 24.08.2013 23:43:
> On 25 Aug 2013 01:44, "Stefan Behnel" wrote:
>> Nick Coghlan, 24.08.2013 16:22:
>>> The new _PyImport_CreateAndExecExtensionModule function does the heavy
>>> lifting:
>>>
>>> https://bitbucket.org/ncoghlan/cpython_sandbox/src/081f8f7e3ee27dc309463b48e6c67cf4880fca
Eli Bendersky writes:
> On Sat, Aug 24, 2013 at 5:55 PM, Stephen J. Turnbull
> wrote:
>> FWIW, as somebody who can recall using ET exactly once,
>> IncrementalParser is what I used.
> Just to be on the safe side, I want to make sure that you indeed
> mean IncrementalParser, which was comm