Commit Graph

4869 Commits

Author SHA1 Message Date
Noah
570d2521d0 Merge pull request #2408 from verhovsky/add-gzip
Copy gzip from CPython 3.10
2021-01-25 18:29:16 -06:00
Noah
5c660c0ae3 Fix crc32 signature again 2021-01-25 18:02:01 -06:00
Noah
97e5c2c890 Merge pull request #2352 from qingshi163/_sre-wip
[WIP] _sre
2021-01-25 14:43:22 -06:00
Noah
19f9ca6390 Merge pull request #2399 from RustPython/coolreader18/asdl
Generate rustpython-ast based off of Python.asdl
2021-01-25 11:09:31 -06:00
Noah
0b68a8acd4 Remove TryFromObject for String impl 2021-01-24 15:31:42 -06:00
boris
95e2d110e7 Comment out failing tests and add notes to io.TextIOWrapper 2021-01-24 02:48:28 -05:00
boris
a6623f1a7d Format ID's as hex 2021-01-24 01:13:30 -05:00
Noah
e2da816fa4 Try setting utf8_mode=1 2021-01-23 14:24:12 -06:00
Noah
d78937011c Fix zlib.crc32 signature 2021-01-23 14:16:23 -06:00
Noah
2c19de9582 Fix signature of memoryview.__exit__ 2021-01-23 14:11:02 -06:00
boris
92896c3681 Add optional mode argument 2021-01-23 02:52:40 -05:00
boris
90524f77c9 Copy gzip from CPython 3.10 2021-01-23 01:10:52 -05:00
boris
7b321b132d Add DEF_MEM_LEVEL by copying the maximum value from CPython 2021-01-23 01:09:55 -05:00
boris
074c996c04 Add more zlib constants 2021-01-22 23:38:38 -05:00
Kangzhi Shi
5794c46adf fix multiple bugs; pass tests 2021-01-22 16:40:33 +02:00
Kangzhi Shi
2a6bf6286a fix Match.group with __index__ 2021-01-21 19:45:00 +02:00
Kangzhi Shi
5232a3db3e fix back_peek_char 2021-01-21 19:24:10 +02:00
Kangzhi Shi
df42fd913f fix at_beginning 2021-01-21 16:14:23 +02:00
Kangzhi Shi
40b68fbea7 impl Pattern SubArgs with bytes 2021-01-21 15:51:51 +02:00
Kangzhi Shi
81d791b04b fix op branch 2021-01-21 12:48:32 +02:00
Kangzhi Shi
8d11e9e310 pass multiple tests 2021-01-20 17:30:23 +02:00
Kangzhi Shi
2e7f47a79e fix zero width repeat 2021-01-20 16:33:30 +02:00
Kangzhi Shi
a0ceadfb2a fix multiple bugs; skip crash tests 2021-01-20 08:29:58 +02:00
Kangzhi Shi
faf0aa6426 add bytes support and refactor 2021-01-20 08:29:58 +02:00
Kangzhi Shi
7ff6dcab9e impl Match.lastgroup 2021-01-20 08:29:58 +02:00
Kangzhi Shi
5e543b4524 impl Pattern.split 2021-01-20 08:29:58 +02:00
Kangzhi Shi
157e5b17ab impl Pattern.finditer 2021-01-20 08:29:58 +02:00
Kangzhi Shi
1b0a7c0a55 impl SRE_Scanner 2021-01-20 08:29:57 +02:00
Kangzhi Shi
5ca4e79eb5 impl Pattern.findall 2021-01-20 08:29:57 +02:00
Kangzhi Shi
ef7c296001 impl Match.groupdict 2021-01-20 08:29:57 +02:00
Kangzhi Shi
79790be0df fix OpMinUntil 2021-01-20 08:29:57 +02:00
Kangzhi Shi
de7f07b354 impl Pattern.sub 2021-01-20 08:29:57 +02:00
Kangzhi Shi
99aaaf7dba impl Match.expand 2021-01-20 08:29:57 +02:00
Kangzhi Shi
3b549cb83e impl Match.__getitem__ 2021-01-20 08:29:57 +02:00
Kangzhi Shi
d812a94c68 fix Opcode::BIGCHARSET 2021-01-20 08:29:57 +02:00
Kangzhi Shi
994ab4efb3 fix Opcode::CHARSET 2021-01-20 08:29:57 +02:00
Kangzhi Shi
080b417f1f impl Match.groups() 2021-01-20 08:29:57 +02:00
Kangzhi Shi
d95a3b7791 OpMaxUntil zero-width protection 2021-01-20 08:29:57 +02:00
Kangzhi Shi
884f16cad0 rework OpMaxUntil; restruct popping context; add tests; 2021-01-20 08:29:57 +02:00
Kangzhi Shi
f021e6ad65 impl Match.group 2021-01-20 08:29:57 +02:00
Kangzhi Shi
963af86935 impl re.Match object 2021-01-20 08:29:57 +02:00
Kangzhi Shi
b24f69739e general case for count 2021-01-20 08:29:57 +02:00
Kangzhi Shi
dbc54e5725 Impl OpRepeatONe 2021-01-20 08:29:57 +02:00
Kangzhi Shi
cab4694788 impl OpMinUntil 2021-01-20 08:29:57 +02:00
Kangzhi Shi
e732d91c73 impl OpRepeat 2021-01-20 08:29:57 +02:00
Kangzhi Shi
0bda6b7c2e impl OpBranch 2021-01-20 08:29:57 +02:00
Kangzhi Shi
0d0c911d71 impl OpMaxUntil 2021-01-20 08:29:57 +02:00
Kangzhi Shi
acac6189d7 impl opcode groupref and assert_not 2021-01-20 08:29:57 +02:00
Kangzhi Shi
76b5093835 impl Pattern.fullmatch, Pattern.search 2021-01-20 08:29:57 +02:00
Kangzhi Shi
3f2640971a create _sre.Match 2021-01-20 08:29:57 +02:00