def extractFlags(item, report=1):
    """Extract the flags from an item as a tuple"""
    return (item.negative, item.optional, item.repeating, item.errorOnFail,
        item.lookahead, item.report and report)
