Commit Graph

605 Commits

Author SHA1 Message Date
K. Lange
76b0b50154 don't explode on bad repr print? 2021-01-12 14:07:16 +09:00
K. Lange
cc236b8da3 Add stress-test target to run valgrind 2021-01-12 07:34:42 +09:00
K. Lange
d5645b3fb6 Fixup more GC losses 2021-01-12 07:34:26 +09:00
K. Lange
6ebe859ad7 More typo cleanup 2021-01-11 22:35:55 +09:00
K. Lange
6ef5c980af typo 2021-01-11 22:09:59 +09:00
K. Lange
e237120d7d typo 2021-01-11 22:06:00 +09:00
K. Lange
574dd82b92 fixup gc reserve ordering in tryBind 2021-01-11 21:52:44 +09:00
K. Lange
ef92ace5a7 Add | and & operations for sets 2021-01-11 21:46:47 +09:00
K. Lange
dc56d7b2ea Normalize __add__ for strings, but keep the shortcut around 2021-01-11 21:46:24 +09:00
K. Lange
871164d217 Fix gc loss in os.environ 2021-01-11 21:45:34 +09:00
K. Lange
9028585673 gc fixups for class fields 2021-01-11 19:11:14 +09:00
K. Lange
5517162a93 Add json module 2021-01-11 19:02:51 +09:00
K. Lange
b00fcc0c0a Call override functions for various operators if available 2021-01-11 17:48:32 +09:00
K. Lange
ba53e5edac Mention class fields in API docs 2021-01-11 16:38:56 +09:00
K. Lange
eb27158173 Class fields and access to class member methods 2021-01-11 16:31:34 +09:00
K. Lange
3141678fa0 Add 'is'/'is not' for exact object equivalence 2021-01-11 15:03:05 +09:00
K. Lange
1e6507e741 zero checks (without relying on FPE interrupt) 2021-01-11 14:50:01 +09:00
K. Lange
991ed99e78 Add a basic collections module 2021-01-11 14:08:05 +09:00
K. Lange
213c496372 Fix up string escapes, make sure we're handling nil bytes when printing 2021-01-11 11:41:26 +09:00
K. Lange
faba2e9e3f Decorators don't need inner wrappers, of course 2021-01-11 07:55:31 +09:00
K. Lange
393c3be0b6 Remove confusing line about decorator arguments 2021-01-11 07:47:58 +09:00
K. Lange
7c4080c417 '... when they are used...' 2021-01-11 07:45:48 +09:00
K. Lange
36d0db27e8 Fix nested exception example 2021-01-11 07:41:32 +09:00
K. Lange
ed9234e707 '... after an exception...' 2021-01-11 07:39:34 +09:00
K. Lange
48da930acd Typos 2021-01-11 07:03:09 +09:00
K. Lange
ff7dcbb92a Support 'return' from within a 'with' block 2021-01-10 23:39:05 +09:00
K. Lange
e6997418cb Improvements to repl tab completion 2021-01-10 22:07:13 +09:00
K. Lange
be0e8dd6c6 Add gc.collect() 2021-01-10 21:14:15 +09:00
K. Lange
b43c723be6 Should pop last by default; support negative indexes to count from back 2021-01-10 20:54:38 +09:00
K. Lange
78c5503341 list.pop() is really useful 2021-01-10 20:49:01 +09:00
K. Lange
fee817c3b7 Cleanup internal dict, list references 2021-01-10 19:44:02 +09:00
K. Lange
35570e7ee9 Support complex argument expansion in C functions 2021-01-10 18:49:52 +09:00
K. Lange
3532f24c75 Rewrite complex argument processor because that old stack-juggling version was awful 2021-01-10 18:23:28 +09:00
K. Lange
30cbeeb85e A bunch more README cleanups 2021-01-10 14:27:39 +09:00
K. Lange
a0920999b6 Try to better explain closures? I'm not great at this. 2021-01-10 13:23:02 +09:00
K. Lange
512b8fd408 More notes on default args, lambda expressions, move variables 2021-01-10 13:15:47 +09:00
K. Lange
5ddb1b60bf Don't pointless call bindMethod in the VM; use direct references 2021-01-10 12:54:40 +09:00
K. Lange
72cd8e39b3 Make sure C module implementers know to call krk_finalizeClass 2021-01-10 12:52:20 +09:00
K. Lange
98fea9bb64 print() should __str__, not __repr__; repl should __repr__, not printValue...
printValue() probably shouldn't exist... and that's about it.
2021-01-10 12:42:24 +09:00
K. Lange
01176579f6 Exceptions were made into special objects over a week ago 2021-01-10 12:00:26 +09:00
K. Lange
21477f7c86 Minor readme rewording 2021-01-10 11:08:34 +09:00
K. Lange
84302652a8 move test 2021-01-10 11:00:14 +09:00
K. Lange
500e761a67 krk_reserve_stack shouldn't be inline 2021-01-10 10:42:52 +09:00
K. Lange
f19833b506 Fix fileio.{stdin,stdout,stderr} which we broke when internalizing the FILE pointer 2021-01-09 22:10:07 +09:00
K. Lange
881864a5b2 'make test' should get an exit code from 'git diff' 2021-01-09 14:01:21 +09:00
K. Lange
997e1a8d2a length should determine truthiness where relevent 2021-01-09 13:58:46 +09:00
K. Lange
ffaf97d8dd Make that slightly smaller 2021-01-09 13:01:31 +09:00
K. Lange
13ffe5d1d7 icon tweaks 2021-01-09 12:58:56 +09:00
K. Lange
52427a5147 Add a basic 'with' statement
This is incomplete; it's missing the necessary plumbing to ensure __exit__
still gets called if the inner block returns or raises an exception. TODO
2021-01-09 12:46:59 +09:00
K. Lange
bb6b4d09f5 Move file pointer to File->_internal 2021-01-09 10:40:52 +09:00