How to get as much of your program byte-compiled as possibleThe CPython interpreter doesn't run Python code directly, but first
compiles it to bytecode. Because this parsing
and compiling steps are somewhat time-consuming, CPython optimizes
things by saving the compiled bytecodes into One of the less well known things about CPython (at least on Unix) is that
it only loads bytecode files when you The way around this is obvious: put all of your program's code in a
module, and then have your 'program' just be a tiny bit of Python
that The one other thing to watch out for is that the user running the Python
program may not have enough permissions on the directory with the
Python modules to write (One comment.)
|
These are my WanderingThoughts GettingAround This is part of CSpace, and is written by ChrisSiebenmann. * * * Atom feeds are available; see the bottom of most pages. Categories: links, linux, programming, python, snark, solaris, spam, sysadmin, tech, unix, web |