💾 Archived View for tris.fyi › pydoc › sre_compile captured on 2022-07-16 at 14:57:22. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2022-01-08)
-=-=-=-=-=-=-
Internal support module for sre
Exception raised for invalid regular expressions. Attributes: msg: The unformatted error message pattern: The regular expression pattern pos: The index in the pattern where compilation failed (may be None) lineno: The line corresponding to pos (may be None) colno: The column corresponding to pos (may be None)
with_traceback(...) Exception.with_traceback(tb) -- set self.__traceback__ to tb and return self.
args = <attribute 'args' of 'BaseException' objects>
compile(p, flags=0)
dis(code)
isstring(obj)
ANY = ANY
ANY_ALL = ANY_ALL
ASSERT = ASSERT
ASSERT_NOT = ASSERT_NOT
AT = AT
ATCODES = [AT_BEGINNING, AT_BEGINNING_LINE, AT_BEGINNING_STRING, AT_BOUNDARY, AT_NON_BOUNDARY, AT_END, AT_END_LINE, AT_END_STRING, AT_LOC_BOUNDARY, AT_LOC_NON_BOUNDARY, AT_UNI_BOUNDARY, AT_UNI_NON_BOUNDARY]
AT_BEGINNING = AT_BEGINNING
AT_BEGINNING_LINE = AT_BEGINNING_LINE
AT_BEGINNING_STRING = AT_BEGINNING_STRING
AT_BOUNDARY = AT_BOUNDARY
AT_END = AT_END
AT_END_LINE = AT_END_LINE
AT_END_STRING = AT_END_STRING
AT_LOCALE = {AT_BOUNDARY: AT_LOC_BOUNDARY, AT_NON_BOUNDARY: AT_LOC_NON_BOUNDARY}
AT_LOC_BOUNDARY = AT_LOC_BOUNDARY
AT_LOC_NON_BOUNDARY = AT_LOC_NON_BOUNDARY
AT_MULTILINE = {AT_BEGINNING: AT_BEGINNING_LINE, AT_END: AT_END_LINE}
AT_NON_BOUNDARY = AT_NON_BOUNDARY
AT_UNICODE = {AT_BOUNDARY: AT_UNI_BOUNDARY, AT_NON_BOUNDARY: AT_UNI_NON_BOUNDARY}
AT_UNI_BOUNDARY = AT_UNI_BOUNDARY
AT_UNI_NON_BOUNDARY = AT_UNI_NON_BOUNDARY
BIGCHARSET = BIGCHARSET
BRANCH = BRANCH
CALL = CALL
CATEGORY = CATEGORY
CATEGORY_DIGIT = CATEGORY_DIGIT
CATEGORY_LINEBREAK = CATEGORY_LINEBREAK
CATEGORY_LOC_NOT_WORD = CATEGORY_LOC_NOT_WORD
CATEGORY_LOC_WORD = CATEGORY_LOC_WORD
CATEGORY_NOT_DIGIT = CATEGORY_NOT_DIGIT
CATEGORY_NOT_LINEBREAK = CATEGORY_NOT_LINEBREAK
CATEGORY_NOT_SPACE = CATEGORY_NOT_SPACE
CATEGORY_NOT_WORD = CATEGORY_NOT_WORD
CATEGORY_SPACE = CATEGORY_SPACE
CATEGORY_UNI_DIGIT = CATEGORY_UNI_DIGIT
CATEGORY_UNI_LINEBREAK = CATEGORY_UNI_LINEBREAK
CATEGORY_UNI_NOT_DIGIT = CATEGORY_UNI_NOT_DIGIT
CATEGORY_UNI_NOT_LINEBREAK = CATEGORY_UNI_NOT_LINEBREAK
CATEGORY_UNI_NOT_SPACE = CATEGORY_UNI_NOT_SPACE
CATEGORY_UNI_NOT_WORD = CATEGORY_UNI_NOT_WORD
CATEGORY_UNI_SPACE = CATEGORY_UNI_SPACE
CATEGORY_UNI_WORD = CATEGORY_UNI_WORD
CATEGORY_WORD = CATEGORY_WORD
CHARSET = CHARSET
CHCODES = [CATEGORY_DIGIT, CATEGORY_NOT_DIGIT, CATEGORY_SPACE, CATEGORY_NOT_SPACE, CATEGORY_WORD, CATEGORY_NOT_WORD, CATEGORY_LINEBREAK, CATEGORY_NOT_LINEBREAK, CATEGORY_LOC_WORD, CATEGORY_LOC_NOT_WORD, CATEGORY_UNI_DIGIT, CATEGORY_UNI_NOT_DIGIT, CATEGORY_UNI_SPACE, CATEGORY_UNI_NOT_SPACE, CATEGORY_UNI_WORD, CATEGORY_UNI_NOT_WORD, CATEGORY_UNI_LINEBREAK, CATEGORY_UNI_NOT_LINEBREAK]
CH_LOCALE = {CATEGORY_DIGIT: CATEGORY_DIGIT, CATEGORY_NOT_DIGIT: CATEGORY_NOT_DIGIT, CATEGORY_SPACE: CATEGORY_SPACE, CATEGORY_NOT_SPACE: CATEGORY_NOT_SPACE, CATEGORY_WORD: CATEGORY_LOC_WORD, CATEGORY_NOT_WORD: CATEGORY_LOC_NOT_WORD, CATEGORY_LINEBREAK: CATEGORY_LINEBREAK, CATEGORY_NOT_LINEBREAK: CATEGORY_NOT_LINEBREAK}
CH_UNICODE = {CATEGORY_DIGIT: CATEGORY_UNI_DIGIT, CATEGORY_NOT_DIGIT: CATEGORY_UNI_NOT_DIGIT, CATEGORY_SPACE: CATEGORY_UNI_SPACE, CATEGORY_NOT_SPACE: CATEGORY_UNI_NOT_SPACE, CATEGORY_WORD: CATEGORY_UNI_WORD, CATEGORY_NOT_WORD: CATEGORY_UNI_NOT_WORD, CATEGORY_LINEBREAK: CATEGORY_UNI_LINEBREAK, CATEGORY_NOT_LINEBREAK: CATEGORY_UNI_NOT_LINEBREAK}
FAILURE = FAILURE
GROUPREF = GROUPREF
GROUPREF_EXISTS = GROUPREF_EXISTS
GROUPREF_IGNORE = GROUPREF_IGNORE
GROUPREF_LOC_IGNORE = GROUPREF_LOC_IGNORE
GROUPREF_UNI_IGNORE = GROUPREF_UNI_IGNORE
IN = IN
INFO = INFO
IN_IGNORE = IN_IGNORE
IN_LOC_IGNORE = IN_LOC_IGNORE
IN_UNI_IGNORE = IN_UNI_IGNORE
JUMP = JUMP
LITERAL = LITERAL
LITERAL_IGNORE = LITERAL_IGNORE
LITERAL_LOC_IGNORE = LITERAL_LOC_IGNORE
LITERAL_UNI_IGNORE = LITERAL_UNI_IGNORE
MAGIC = 20171005
MARK = MARK
MAXCODE = 4294967295
MAXGROUPS = 2147483647
MAXREPEAT = MAXREPEAT
MAX_REPEAT = MAX_REPEAT
MAX_UNTIL = MAX_UNTIL
MIN_REPEAT = MIN_REPEAT
MIN_REPEAT_ONE = MIN_REPEAT_ONE
MIN_UNTIL = MIN_UNTIL
NEGATE = NEGATE
NOT_LITERAL = NOT_LITERAL
NOT_LITERAL_IGNORE = NOT_LITERAL_IGNORE
NOT_LITERAL_LOC_IGNORE = NOT_LITERAL_LOC_IGNORE
NOT_LITERAL_UNI_IGNORE = NOT_LITERAL_UNI_IGNORE
OPCODES = [FAILURE, SUCCESS, ANY, ANY_ALL, ASSERT, ASSERT_NOT, AT, BRANCH, CALL, CATEGORY, CHARSET, BIGCHARSET, GROUPREF, GROUPREF_EXISTS, IN, INFO, JUMP, LITERAL, MARK, MAX_UNTIL, MIN_UNTIL, NOT_LITERAL, NEGATE, RANGE, REPEAT, REPEAT_ONE, SUBPATTERN, MIN_REPEAT_ONE, GROUPREF_IGNORE, IN_IGNORE, LITERAL_IGNORE, NOT_LITERAL_IGNORE, GROUPREF_LOC_IGNORE, IN_LOC_IGNORE, LITERAL_LOC_IGNORE, NOT_LITERAL_LOC_IGNORE, GROUPREF_UNI_IGNORE, IN_UNI_IGNORE, LITERAL_UNI_IGNORE, NOT_LITERAL_UNI_IGNORE, RANGE_UNI_IGNORE]
OP_IGNORE = {LITERAL: LITERAL_IGNORE, NOT_LITERAL: NOT_LITERAL_IGNORE}
OP_LOCALE_IGNORE = {LITERAL: LITERAL_LOC_IGNORE, NOT_LITERAL: NOT_LITERAL_LOC_IGNORE}
OP_UNICODE_IGNORE = {LITERAL: LITERAL_UNI_IGNORE, NOT_LITERAL: NOT_LITERAL_UNI_IGNORE}
RANGE = RANGE
RANGE_UNI_IGNORE = RANGE_UNI_IGNORE
REPEAT = REPEAT
REPEAT_ONE = REPEAT_ONE
SRE_FLAG_ASCII = 256
SRE_FLAG_DEBUG = 128
SRE_FLAG_DOTALL = 16
SRE_FLAG_IGNORECASE = 2
SRE_FLAG_LOCALE = 4
SRE_FLAG_MULTILINE = 8
SRE_FLAG_TEMPLATE = 1
SRE_FLAG_UNICODE = 32
SRE_FLAG_VERBOSE = 64
SRE_INFO_CHARSET = 4
SRE_INFO_LITERAL = 2
SRE_INFO_PREFIX = 1
SUBPATTERN = SUBPATTERN
SUCCESS = SUCCESS