module documentation

Compiles a single .py to a .pyc and writes it to stdout.

Function compile_src_to_pyc Compile a string of source code.
Function compile_to_pyc Compile the source code to byte code.
Function is_comment_only Undocumented
Function main Undocumented
Function strip_encoding Strip encoding from a src string assumed to be read from a file.
Function write_pyc Undocumented
Constant ENCODING_PATTERN Undocumented
Function _write32 Undocumented
def compile_src_to_pyc(src, filename, output, mode): (source)

Compile a string of source code.

def compile_to_pyc(data_file, filename, output, mode): (source)

Compile the source code to byte code.

def is_comment_only(line): (source)

Undocumented

def main(): (source)

Undocumented

def strip_encoding(src): (source)

Strip encoding from a src string assumed to be read from a file.

def write_pyc(f, codeobject, source_size=0, timestamp=0): (source)

Undocumented

ENCODING_PATTERN: str = (source)

Undocumented

Value
'^[ \t\v]*#.*?coding[:=][ \t]*([-_.a-zA-Z0-9]+)'
def _write32(f, w): (source)

Undocumented