[issue17865] PowerPC exponentiation and round() interaction

2013-04-29 Thread Mark Dickinson
Mark Dickinson added the comment: No problem; thanks for the update. By the way, if you do file an OS bug report of some form, it would be great if you could add a link to this issue. That might help anyone who encounters this in Python in the future. Closing. -- resolution: -> wor

[issue17865] PowerPC exponentiation and round() interaction

2013-04-29 Thread Ellen Wang
Ellen Wang added the comment: OK. My bad. I should have been tipped off that the program didn't need -lm to link. Output from C code: 0.135335 1 0.239022 Feel free to close. I'll have to look into this on my own. Thanks and sorry. -- ___ Pytho

[issue17865] PowerPC exponentiation and round() interaction

2013-04-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Oh, sorry, I missed PowerPC. Please ignore my previous comment. -- ___ Python tracker ___ ___ Pyth

[issue17865] PowerPC exponentiation and round() interaction

2013-04-29 Thread Mark Dickinson
Mark Dickinson added the comment: Hmm: it's not an obvious Python bug, either: both math.exp and math.ceil are simple wrappers around the libm functions, so there's little room for things to go wrong between Python and the OS. Are you in a position to compile Python from source on your platf

[issue17865] PowerPC exponentiation and round() interaction

2013-04-29 Thread Mark Dickinson
Changes by Mark Dickinson : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue17865] PowerPC exponentiation and round() interaction

2013-04-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I can't reproduce this on 2.7.4. Could you please test 2.7.4? -- nosy: +serhiy.storchaka ___ Python tracker ___ __

[issue17865] PowerPC exponentiation and round() interaction

2013-04-28 Thread Ellen Wang
Ellen Wang added the comment: Here's an example that uses only math library functions and float literals, presumably with a simpler code path: Python 2.7.3 (default, Jan 2 2013, 16:38:11) [GCC 4.6.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import ma

[issue17865] PowerPC exponentiation and round() interaction

2013-04-28 Thread Ellen Wang
New submission from Ellen Wang: This is only on a PowerPC, specifically a p2020, running Debian 7.0 wheezy, python 2.7.3. Calling round() seems to corrupt something (in the floating point state?) that causes subsequent exponentiation (the ** operator) to be wrong: Python 2.7.3 (default, Jan