On 2014-01-17, Steven D'Aprano <steve+comp.lang.pyt...@pearwood.info> 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 <insert language/platform/OS here>.

[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!!
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to