Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/a/s/astoptimizer-0.6/demo.py   astoptimizer(Download)
import sys
import types
from astoptimizer import Config, parse_ast, optimize_ast, compile_ast
from optparse import OptionParser
 
        code_str = '\n'.join(args)
 
    config = Config()
    if options.all:
        config.enable_all_optimizations()

src/a/s/astoptimizer-0.6/astoptimizer/tests.py   astoptimizer(Download)
import warnings
 
from astoptimizer import Config as _Config, parse_ast, compile_ast
from astoptimizer.compatibility import (
    PYTHON2, PYTHON27, PYTHON3, PYTHON34,
    def create_config(self, *features):
        config = _Config(*features)
        config.info_func = self.log_info
        config.warning_func = self.log_warning
        return config