[wxPython 2.3.1] what's going on?

Pawel Oleksik oleksik at awa.mat.agh.edu.pl
Tue Mar 19 05:58:46 EST 2002


Hi Snakes Tamers!

Playing with wxPython modules I've found something -- perhaps bug.
Importing from wxPython.wx changes the calculation rules.
Here is an example (strictly based on the random.py self-verification):

(Linux, glibc-2.2.5, wxGTK-2.3.1, wxPython-2.3.1)


Python 2.1.1 (#1, Aug 26 2001, 02:52:19) 
[GCC 2.95.3 20010315 (release)] on linux2
Type "copyright", "credits" or "license" for more information.
>>> import math
>>> 4*math.exp(-0.5)/math.sqrt(2.0)
1.7155277699214135
>>> from wxPython.wx import *
>>> 4*math.exp(-0.5)/math.sqrt(2.0)
2,8284271247461898

Has anybody met this problem, or it's just my 'private reslult' :)

best regards
p.o.




More information about the Python-list mailing list