def co_dumps(s):
    """pickles a code object,arg s is the string with code
    returns the code object pickled as a string"""
    co = compile(s,'<string>','exec')
    co_tup=[co.co_argcount,co.co_nlocals, co.co_stacksize,co.co_flags,
    co.co_code,co.co_consts,co.co_names,co.co_varnames,co.co_filename,
    co.co_name,co.co_firstlineno,co.co_lnotab]
    return pickle.dumps(co_tup)
pickles a code object,arg s is the string with code
    returns the code object pickled as a string
recipes/Python/212565_copickle__module_serialize_code/recipe-212565.py