Did I find the right examples for you? yes no

All Samples(283)  |  Call(6)  |  Derive(0)  |  Import(277)
Routine to "compile" a .py file to a .pyc (or .pyo) file.

This module has intimate knowledge of the format of .pyc files.

src/m/a/main-HEAD/External.LCA_RESTRICTED/Languages/IronPython/27/Lib/zipfile.py   main(Download)
        elif not os.path.isfile(file_pyc) or \
             os.stat(file_pyc).st_mtime < os.stat(file_py).st_mtime:
            import py_compile
            if self.debug:
                print "Compiling", file_py

src/m/a/main-HEAD/External.LCA_RESTRICTED/Languages/IronPython/27/Lib/compileall.py   main(Download)
import os
import sys
import py_compile
import struct
import imp

src/m/a/main-HEAD/External.LCA_RESTRICTED/Languages/CPython/27/Lib/zipfile.py   main(Download)
        elif not os.path.isfile(file_pyc) or \
             os.stat(file_pyc).st_mtime < os.stat(file_py).st_mtime:
            import py_compile
            if self.debug:
                print "Compiling", file_py

src/m/a/main-HEAD/External.LCA_RESTRICTED/Languages/CPython/27/Lib/compileall.py   main(Download)
import os
import sys
import py_compile
import struct
import imp

src/o/p/openvault-core-HEAD/hydra-jetty/webapps/media/WEB-INF/lib/Lib/zipfile.py   openvault-core(Download)
        elif not os.path.isfile(file_pyc) or \
             os.stat(file_pyc).st_mtime < os.stat(file_py).st_mtime:
            import py_compile
            if self.debug:
                print "Compiling", file_py

src/o/p/openvault-core-HEAD/hydra-jetty/webapps/media/WEB-INF/lib/Lib/compileall.py   openvault-core(Download)
import os
import sys
import py_compile
 
__all__ = ["compile_dir","compile_path"]

src/p/y/pydroid-HEAD/src/pydroid/framework/project_skeleton/libs/python27/lib/python2.7/zipfile.py   pydroid(Download)
        elif not os.path.isfile(file_pyc) or \
             os.stat(file_pyc).st_mtime < os.stat(file_py).st_mtime:
            import py_compile
            if self.debug:
                print "Compiling", file_py

src/p/y/pydroid-HEAD/src/pydroid/framework/project_skeleton/libs/python27/lib/python2.7/compileall.py   pydroid(Download)
import os
import sys
import py_compile
import struct
import imp

src/p/l/plexnet-HEAD/third_party/generic/pypy/lib-python/modified-2.5.2/zipfile.py   plexnet(Download)
        elif not os.path.isfile(file_pyc) or \
             os.stat(file_pyc).st_mtime < os.stat(file_py).st_mtime:
            import py_compile
            if self.debug:
                print "Compiling", file_py

src/p/l/plexnet-HEAD/third_party/generic/pypy/lib-python/2.5.2/zipfile.py   plexnet(Download)
        elif not os.path.isfile(file_pyc) or \
             os.stat(file_pyc).st_mtime < os.stat(file_py).st_mtime:
            import py_compile
            if self.debug:
                print "Compiling", file_py

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next