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

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

src/a/s/astoptimizer-0.6/astoptimizer/config_struct.py   astoptimizer(Download)
"""
Optimizations for the struct module.
"""
from astoptimizer.config import Function, VarargFunction, ANY_TYPE
from astoptimizer.compatibility import NATIVE_STR
import struct
 
def setup_config(config):
    config.add_func('struct.pack', VarargFunction(struct.pack, catch=struct.error))