_______________________________________________________________
Get the FREE email that has everyone talking at http://www.mail2world.com
Unlimited Email Storage POP3 Calendar SMS Translator Much More!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/melbourne-pug/attachments/20060331/2512c6dc/attachment.html
From ryan at rfk.id.au Sun Apr 2 08:48:00 2006
From: ryan at rfk.id.au (Ryan Kelly)
Date: Sun, 02 Apr 2006 16:48:00 +1000
Subject: [melbourne-pug] Python, VB math simple problem
In-Reply-To: <220a301c65546$40c7b7a0$0a10010a@mail2world.com>
References: <220a301c65546$40c7b7a0$0a10010a@mail2world.com>
Message-ID: <1143960481.9334.8.camel@mango>
> Ideally, I'd love to be able to simply have some extremely small
> executable that just accepts inputs
> does the calculations above and then spits out the outputs. If it were
> possible to write some
> simple lines of math code in Python and then compile these scripts in
> Python to a Windows
> compatible executable,that would be fantastic.
This is certainly possible, but the executable will definitely not be
small. For such a streamlined task, I don't think it would be worth
trying to generate a separate executable.
Instead, why not have your VB program generate a python script that
performs the calculations? Then you can just call the python
interpreter to execute that program. Like so: (dont know VB syntax
sorry)
fp = open_file("do_my_calculations.py")
write(fp,"<