Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!nntp.club.cc.cmu.edu!micro-heart-of-gold.mit.edu!bloom-beacon.mit.edu!panix!not-for-mail From: Grant Edwards Newsgroups: comp.lang.python Subject: Re: Compiling main script into .pyc Date: Fri, 17 Jan 2014 20:12:56 +0000 (UTC) Organization: PANIX Public Access Internet and UNIX, NYC Lines: 25 Message-ID: References: <61a24c80-12fd-4c7a-89ed-41e997b66545@googlegroups.com> <52D89BC2.4000602@gmail.com> <52D8A143.4010206@mrabarnett.plus.com> <52d8ec89$0$29999$c3e8da3$5496439d@news.astraweb.com> NNTP-Posting-Host: dsl.comtrol.com X-Trace: reader1.panix.com 1389989576 19381 64.122.56.22 (17 Jan 2014 20:12:56 GMT) X-Complaints-To: abuse@panix.com NNTP-Posting-Date: Fri, 17 Jan 2014 20:12:56 +0000 (UTC) User-Agent: slrn/1.0.1 (Linux) Xref: csiph.com comp.lang.python:64191 On 2014-01-17, Steven D'Aprano wrote: > On Thu, 16 Jan 2014 23:43:02 -0500, Dave Angel wrote: > [steve@ando ~]$ cat sample.py > print("Hello!") > > [steve@ando ~]$ ls sample.pyc > ls: sample.pyc: No such file or directory > [steve@ando ~]$ python -m compileall sample.py > Compiling sample.py ... > [steve@ando ~]$ ls sample.p* > sample.py sample.pyc > [steve@ando ~]$ python sample.pyc > Hello! Cool! Now I can distribute my application as a pre-compiled "binary" just like I do for . [That was meant ironically, BTW] -- Grant Edwards grant.b.edwards Yow! I want EARS! I want at two ROUND BLACK EARS gmail.com to make me feel warm 'n secure!!