[wxPython 2.3.1] what's going on?

StevenViCy Steven.dot.Suchting. at computer.dot.org
Tue Mar 19 09:44:33 EST 2002


Not a problem for me either.
(Windows95, Python 2.2, wxPython 2.3.2.1)

Python 2.2 (#28, Dec 21 2001, 12:21:22) [MSC 32 bit (Intel)] on win32
Type "copyright", "credits" or "license" for more information.
IDLE 0.8 -- press F1 for help
>>> 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)
1.7155277699214135
>>>

Pawel Oleksik wrote:

> 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