Commit Graph

1224 Commits

Author SHA1 Message Date
K. Lange
6eda98161d Be more clear on OPERANDS being unsigned 2022-07-16 13:27:38 +09:00
K. Lange
d027b86861 Bump serial, 1.3.0b3 2022-07-15 09:52:42 +09:00
K. Lange
d73d7bdef9 -m dis should recurse 2022-07-15 08:06:34 +09:00
K. Lange
e22410d81b Still need to advance into that string token... 2022-07-13 22:13:39 +09:00
K. Lange
77c38ea7cd Only print actual expressions in repl; fix dumb hacks 2022-07-13 21:31:48 +09:00
K. Lange
a20c89fe2f Support -m dis with a dis.krk pseudomodule 2022-07-13 09:22:19 +09:00
K. Lange
f8acd8a75b Fix segfault in syntax error when previous token is synthetic 2022-07-13 09:21:57 +09:00
K. Lange
b7e1454d83 int in bytes 2022-07-12 21:42:22 +09:00
K. Lange
cf4683e4e7 tuple.__mul__ 2022-07-12 21:35:26 +09:00
K. Lange
56c1bbe231 Tab-complete builtin module names after 'import', 'from' 2022-07-12 20:42:18 +09:00
K. Lange
d3326885de Bump serial number 2022-07-12 09:42:57 +09:00
K. Lange
6e2ba5f060 Allow functions to be built from codeobjects, upvalues, dict/instance 2022-07-12 09:42:33 +09:00
K. Lange
316d1219a2 Bind globals to functions, not codeobjects 2022-07-12 09:41:48 +09:00
K. Lange
7dc754a519 Update outdated comment about enum values for opcodes 2022-07-12 08:13:26 +09:00
K. Lange
3472fcfb6b Accept trailing comma in set literal 2022-07-12 06:23:16 +09:00
K. Lange
ed81bc9c03 Randomize the opcode table. 2022-07-12 05:41:35 +09:00
K. Lange
212efab01b Consolidate opcode definitions and do not expose the macros in public headers 2022-07-11 21:02:35 +09:00
K. Lange
ff43e94054 Cleanup common method invocation instructions 2022-07-11 13:41:10 +09:00
K. Lange
431d347568 OP_TEST_ARG 2022-07-11 11:44:13 +09:00
K. Lange
eeca53e4f1 Fix bad argument collection with optional positionals 2022-07-11 10:03:00 +09:00
K. Lange
258527ef7b Fill out missing tokens in parse table for debugging; remove TOKEN_ from string names 2022-07-11 09:33:50 +09:00
K. Lange
be3c8a9ba4 Set release serial, shorten -beta to b 2022-07-11 07:39:40 +09:00
K. Lange
15014df397 Add kuroko.hexversion 2022-07-11 07:17:58 +09:00
K. Lange
71931151e4 Let MAKE_STRING handle the = prefix, after FORMAT_VALUE swaps it around 2022-07-10 19:36:14 +09:00
K. Lange
feebd6e6a8 Emit emit string not MAKE_STRING 0 2022-07-10 19:16:01 +09:00
K. Lange
a3b2722707 Unicode character for fill in __format__ 2022-07-10 19:12:16 +09:00
K. Lange
0c101079d4 Support Unicode strings in argument to str.*strip 2022-07-10 18:49:42 +09:00
K. Lange
aa97b3762d f'{foo=}' should default to !r if no = or !s 2022-07-10 17:58:00 +09:00
K. Lange
ec6a896a04 Display textual representation of FORMAT_VALUE type in dis like CPython does 2022-07-10 17:55:25 +09:00
K. Lange
391a4d79db Fixup concatenating unalike string tokens in compiler 2022-07-10 17:44:06 +09:00
K. Lange
e5f4208f6a str.__format__ 2022-07-10 17:04:11 +09:00
K. Lange
cb1bfa4b93 Cleanup, fix, break out common format string parsing 2022-07-10 17:04:02 +09:00
K. Lange
7d409ebcbb Format spec support in f-strings 2022-07-10 16:11:12 +09:00
K. Lange
9230d4fee1 int.__format__, long.__format__ with as close to Python semantics as I can be bothered 2022-07-10 16:10:40 +09:00
K. Lange
d8a1861c23 format() and object.__format__() 2022-07-10 16:10:07 +09:00
K. Lange
f1c0af711e Cache __format__ method 2022-07-10 16:09:32 +09:00
K. Lange
f24cb336e7 Fixup SET_GLOBAL to use IfExists, no need for delete 2022-07-10 13:19:15 +09:00
K. Lange
9b5ce15bf7 Implement Python's identifier mangling 2022-07-10 13:13:27 +09:00
K. Lange
d00bdda104 Strings, too... 2022-07-09 21:55:08 +09:00
K. Lange
17a6aaf8d6 Fix parse error when 'if' ends on a class 2022-07-09 21:10:36 +09:00
K. Lange
95c6f17a21 Remove accidentally committed test file 2022-07-09 20:56:07 +09:00
K. Lange
6fa951a0bb Subclass cleanup must use exact key match to not call VM during GC sweep 2022-07-09 18:50:31 +09:00
K. Lange
ff23dbbc14 Update docs 2022-07-09 08:12:31 +09:00
K. Lange
c10a457242 Rudimentary __setattr__ support 2022-07-07 14:54:30 +09:00
K. Lange
cf98b93836 dict.__eq__ 2022-07-06 22:18:37 +09:00
K. Lange
ae99ce1058 set comparisons 2022-07-06 22:14:28 +09:00
K. Lange
ff19144201 Even more correct sequence comparisons... 2022-07-06 22:07:42 +09:00
K. Lange
6d59ddb4cd 'inline' on krk_valuesEqual does nothing 2022-07-06 21:53:55 +09:00
K. Lange
c9b989cb56 Add test for __set_name__ 2022-07-06 21:43:15 +09:00
K. Lange
2d8de139b3 More fixes to tuple comparisons; port to lists 2022-07-06 21:25:59 +09:00