

@classdef.method('pack')
def method_pack(self, space, w_template):
    template = Coerce.str(space, w_template)
    result = RPacker(template, space.listview(self)).operate(space)
    w_result = space.newstr_fromchars(result)
    space.infect(w_result, w_template)
    return w_result

dataset/ETHPy150Open topazproject/topaz/topaz/objects/arrayobject.py W_ArrayObject.method_pack/original