Mark Dickinson <dicki...@gmail.com> added the comment:

Thanks.  I'm still stuck, though.  Since I'm pretty much at the wild guesses 
stage, here's one:

<wild idea> Perhaps the pymath.o object file isn't being included in the Python 
executable at all, because none of its functions are needed.  Now that doesn't 
seem to make sense, since the round function is needed, and used, in 
Objects/floatobject.c (that is, if PY_NO_SHORT_FLOAT_REPR is *not* defined;  
I'm still not clear on whether that's the case or not---if you can get as far 
as launching an interpreter, then the result of sys.float_repr_style would be 
'short' in that case).  But gcc (depending on the version, I guess) has builtin 
versions of some standard C library functions, including 'round'.  So if it 
were using the builtin then there would be no need to link to the pymath.o 
file, so it might be left out of the python executable.  But I'm not sure why 
the same doesn't happen when compiling the math module.

Neither am I sure how one might go about testing the above hypothesis.

----------

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

Reply via email to