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 skrah
Recipients lemburg, pitrou, scoder, skrah
Date 2014-08-24.08:56:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <20140824085606.GA11449@sleipnir.bytereef.org>
In-reply-to <53F9195B.1030103@free.fr>
Content
Antoine Pitrou <report@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?
History
Date User Action Args
2014-08-24 08:56:08skrahsetrecipients: + skrah, lemburg, pitrou, scoder
2014-08-24 08:56:07skrahlinkissue22194 messages
2014-08-24 08:56:07skrahcreate