Exemple #1
0
def delete_func_code():
    func_dict = get_dict(FunctionType)
    del func_dict['func_code']
    del func_dict['__closure__']
Exemple #2
0
def delete_type():
    type_dict = get_dict(type)
    del type_dict['__bases__']
    del type_dict['__subclasses__']
Exemple #3
0
def delete_func_code():
    func_dict = get_dict(FunctionType)
    del func_dict['func_code']