Module Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num NameLoad NameLoad body Expr Str If UnaryOpNot NameLoad body Assign NameStore NameLoad If CompareGt NameLoad NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad AugAssignAdd NameStore Num AugAssignAdd NameStore Num Assign NameStore Call NameLoad NameLoad If BoolOpOr SubscriptLoad NameLoad Index Num CompareLt NameLoad NameLoad CompareGt NameLoad NameLoad CompareIn Str SubscriptLoad NameLoad Slice Num NameLoad body Return TupleLoad NameLoad NameLoad NameLoad orelse AugAssignAdd NameStore Num AugAssignAdd NameStore Num Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call NameLoad NameLoad If BoolOpOr SubscriptLoad NameLoad Index Num CompareLt NameLoad NameLoad CompareGt NameLoad BinOpAdd NameLoad Num CompareIn Str SubscriptLoad NameLoad Slice Num NameLoad BoolOpAnd CompareEq NameLoad BinOpAdd NameLoad Num SubscriptLoad NameLoad Index NameLoad body Raise Call NameLoad BinOpMod Str NameLoad Assign NameStore SubscriptLoad NameLoad Slice Num NameLoad Expr Call AttributeLoad NameLoad attr BinOpMult ListLoad NameLoad BinOpSub BinOpSub NameLoad Num Call NameLoad NameLoad Return NameLoad decorator_list
N/A N/A Miscellaneous utility functions for use with Swift. split_path N/A N/A path minsegs maxsegs rest_with_last N/A 1 None False N/A N/A Validate and split the given HTTP request path.

    **Examples**::

        ['a'] = split_path('/a')
        ['a', None] = split_path('/a', 1, 2)
        ['a', 'c'] = split_path('/a/c', 1, 2)
        ['a', 'c', 'o/r'] = split_path('/a/c/o/r', 1, 3, True)

    :param path: HTTP Request path to be split
    :param minsegs: Minimum number of segments to be extracted
    :param maxsegs: Maximum number of segments to be extracted
    :param rest_with_last: If True, trailing data will be returned as part
                           of last segment.  If False, and there is
                           trailing data, raises ValueError.
    :returns: list of segments with a length of maxsegs (non-existent
              segments will return as None)
    :raises: ValueError if given an invalid path
     N/A N/A maxsegs N/A N/A maxsegs minsegs N/A N/A minsegs maxsegs N/A N/A N/A ValueError N/A minsegs > maxsegs: %d > %d N/A minsegs maxsegs N/A rest_with_last N/A N/A segs N/A N/A path split / maxsegs N/A minsegs 1 N/A maxsegs 1 N/A count N/A len segs N/A N/A N/A segs N/A 0 N/A count minsegs N/A count maxsegs N/A N/A segs N/A 1 minsegs N/A N/A N/A None None None N/A N/A minsegs 1 N/A maxsegs 1 N/A segs N/A N/A path split / maxsegs N/A count N/A len segs N/A N/A N/A segs N/A 0 N/A count minsegs N/A count N/A maxsegs 1 N/A N/A segs N/A 1 minsegs N/A N/A count N/A maxsegs 1 N/A segs N/A maxsegs N/A N/A N/A ValueError N/A Invalid path: %s path N/A segs N/A segs N/A 1 maxsegs N/A N/A N/A segs extend N/A N/A None N/A N/A maxsegs 1 N/A len segs N/A segs N/A