FW: Re: [Tutor] compiler

dman dsh8290@rit.edu
Mon, 19 Nov 2001 22:08:38 -0500


I think this was meant for the list.


----- Forwarded message from Kirk Bailey <deliberatus@my995internet.com> -----

From: Kirk Bailey <deliberatus@my995internet.com>
Date: Mon, 19 Nov 2001 20:39:16 -0500
To: dman <dsh8290@ritvax.isc.rit.edu>
X-Mailer: Mozilla 4.74 [en] (Win98; U)

Is there nothing that will take a python script, and compile it in
runtime executable code? Python is wonderful, but a executable in
machine language compiled from something is a lot faster, which is VERY
handy if ou use the thing a lot.

dman wrote:
> 
> On Mon, Nov 19, 2001 at 05:09:28PM -0800, john public wrote:
> |
> |  I think I just successfully downloaded python2.1
> |  So I was going to compile and run "Hello World"
> |  I can't seem to find the icon to get the compiler
> |  up and running.
> 
> There is no compiler.  Python is interpreted, so there is no
> compilation step.  Simply put the directory containing 'python.exe' in
> your PATH (this may have been done by the installer, I don't know) and
> run
>     python myapp.py
> 
> where 'myapp.py' is the necessary path to your application's "main"
> file.  (there is no "main" function, but the name can still be used
> :-).  By "necessary path" I mean whatever relative or absolute path is
> needed to identify the file from where you are (in the command
> prompt).
> 
> |  I tried clicking on existing
> |  programs that downloaded with python but it brought
> |  up my dev c++ compiler not the python compiler.
> |  Suggestions greatly appreciated.
> 
> This means the file type associates are not correct.  You were double
> clicking on .py files, right?  If you want to have double-clicking on
> a .py file try executing it, open up explorer and in the "options"
> item in the "Tools" menu you can set the association of .py files to
> be opened with "python.exe".  (I prefer to have my editor opened, but
> you can do what you want with your system)
> 
> HTH,
> -D

-- 
Respectfully,
             -Kirk D Bailey (C)2001
              Addme! icq #27840081
end
      My Sites:
      http://www.howlermonkey.net/ - free REAL email! list service soon!
      http://www.sacredelectron.org/ - Rants! Spleenvents!
      http://www.minorfish.org/ - The list server for some of us!

Message of the week:
R5L9W SDPQW UVN7V RUBWB I6HFP WVCUT VWRVL
W7812 LVH8V JBVK2 3CEJB TO8P3 FHFHG H7BFM
QID68 6DN6F 6M486 YQNCF JECQP 86CNP 86CTT
JIQPF ZPVGV DLFST DBUDI UIFNC BTUBS ETBOE
BTTGV DLUIF NSFBM IBSE!


----- End forwarded message -----