Stefan Krah added the comment:

Antoine Pitrou <rep...@bugs.python.org> wrote:
> Who are those people? #16745 was opened by you :-)

MvL, in #4555 (msg176486).

> > Platform specific maybe, but no hack:  I was thinking about storing the DSO
> > handle in the PyModuleObject struct and add functions to lookup symbols.
> > I'm attaching a diff for Linux -- It has been a while, but I'm rather 
> > certain
> > that the corresponding scheme also worked on Windows (can't test now, my
> > Windows VM is defunct).
> 
> How does it work? I've tried to dlopen() and then dlsym() the _decimal 
> file manually, it wouldn't work for private (e.g. mpd) symbols.

Yes, the symbols would need to be public, see module_get_symbol.diff.

> 
> > That would leave the usual troublemakers AIX etc., which have sketchy 
> > support
> > anyway.
> 
> That sounds rather worrying. How about OS X? Why would that whole scheme 
> be better than a capsule?

I'm not sure about OS X, but I would be surprised if it did not work.

To my limited knowledge, Capsules are slow, see also here (the penultimate
paragraph):

https://mail.python.org/pipermail/python-dev/2013-March/124481.html

Stefan (Behnel), could you comment on the strategy that you had in mind?
Is it similar to module_get_symbol.diff or entirely different?

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue22194>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to