Re: [cx-freeze-users] math problems
Brought to you by:
atuining
From: Anthony T. <ant...@gm...> - 2010-07-25 01:35:11
|
I'm a little confused here. It looks to me like you are simply running python (2.6) and python3 (3.x) and these will behave differently -- as documented. Are you suggesting that when compiled they don't behave the same as when run from source? I find that surprising. Perhaps you don't realize that you need to have two separate installations of cx_Freeze -- one for each different version. At that point, your script cxfreeze will be the last one you installed. Let me suggest instead that you use setup.py at which point you can run "python setup.py build" and "python3 setup.py build" without having to worry about which version you are using. If I'm missing something, let me know. Anthony On Sat, Jul 24, 2010 at 6:21 PM, morpheus747 <mor...@gm...> wrote: > I have some math problems when i compile a python 3 hello world program > here is my code.. > > print("hello") > a = 10 > b = 3 > c = a/b > print(c) > > if i do python3 hello.py > the result is > hello > 3.333333 > > if i do > python hello.py > the result is > hello > 3 > > i don't understand why my script in python3 is executed like a python 2.6 :/ > for compile i use > cxfreeze hello.py > > someone can help my to compile with py3 libs? > tnx > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > cx-freeze-users mailing list > cx-...@li... > https://lists.sourceforge.net/lists/listinfo/cx-freeze-users > > |