Re: [Python-Dev] How to force export of a particular symbol from python.exe?

2008-12-15 Thread Jim Murphy
Martin: You wrote: That's not the issue. Had pymath.o been linked into python, it's symbols would have been exported (is that proper use of English tenses?) Yes, it's a proper and idiomatic use of the subjunctive mood, which many native (American) English speakers manage to mangle. I

Re: [Python-Dev] How to force export of a particular symbol from python.exe?

2008-12-15 Thread Steve Holden
Jim Murphy wrote: Martin: You wrote: That's not the issue. Had pymath.o been linked into python, it's symbols would have been exported (is that proper use of English tenses?) It does, however, make the common mistake of putting an apostrophe in a possessive personal pronoun.

Re: [Python-Dev] How to force export of a particular symbol from python.exe?

2008-12-15 Thread Nick Coghlan
Steve Holden wrote: This is only significant because Martin is a perfectionist who wants to write better English. I can't remember a time when his slightly-less-than-perfect command of the language rendered anything he wrote incomprehensible. I'd actually criticise the written communication

Re: [Python-Dev] How to force export of a particular symbol from python.exe?

2008-12-15 Thread Martin v. Löwis
This particular thread of discussion does appear to be veering a little off topic though :) And I apologize for starting it :-) Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe:

[Python-Dev] How to force export of a particular symbol from python.exe?

2008-12-14 Thread Mark Dickinson
Hi all, I'm having some trouble making some bits of the Python core code available to extension modules. Specifically, I'm trying to add a function 'Py_force_to_memory' to Python/pymath.c and then use it (via a macro) from Modules/cmathmodule.c. But importing of the cmath module fails with a

Re: [Python-Dev] How to force export of a particular symbol from python.exe?

2008-12-14 Thread Martin v. Löwis
(1) Is this an OS X only problem? Probably not. If nothing of pymath.c is actually needed when linking the python executable, pymath.o will be excluded by the linker. (2) Is there an easy way to force a particular symbol (or all the symbols from a particular object file) to be exported in the

Re: [Python-Dev] How to force export of a particular symbol from python.exe?

2008-12-14 Thread Mark Dickinson
On Sun, Dec 14, 2008 at 9:06 PM, Martin v. Löwis mar...@v.loewis.de wrote: That's not the issue. Had pymath.o been linked into python, it's symbols would have been exported (is that proper use of English tenses?) Sounds right to me. To fix this, I see three solutions [...] Thanks for

Re: [Python-Dev] How to force export of a particular symbol from python.exe?

2008-12-14 Thread Martin v. Löwis
It's a little bit messy: some bits of pymath.c (hypot, and possibly copysign) are needed in the core, but only on platforms whose math libraries haven't caught up with C99. It would be possible to only build the module if it defines any functions; that should be checked in configure.