def order(self, order):
        order = int(order)
        if order < 1:
            raise ValueError, 'cannot reduce a vector to zero elements'
        v = V(self)
        while order < len(v._v):
            v._v.pop()
        while order > len(v._v):
            v._v.append(1.0)
        v._l = None
        return v

#----------------------------------------------------------------------------
Enables "packrat" parsing, which adds memoizing to the parsing logic.
dataset/ETHPy150Open hhatto/autopep8/test/vectors_example.py/V.order--crossover with--dataset/ETHPy150Open pypa/pip/pip/_vendor/pyparsing.py/ParserElement.enablePackrat