Commit Graph

315 Commits

Author SHA1 Message Date
K. Lange
5f0f7ea0b1 Some notes on Unicode 2021-01-13 07:36:46 +09:00
K Lange
70732eed56 Add hex() 2021-01-12 22:57:39 +09:00
K. Lange
975d4dcb9b Implement __eq__ and hashing for tuples 2021-01-12 22:30:06 +09:00
K. Lange
f43eff0f2e JSON module should be able to support unicode strings easily 2021-01-12 22:19:24 +09:00
K. Lange
11cb36b751 README cleanup 2021-01-12 22:19:13 +09:00
K. Lange
058a510149 Add some missing builtins 2021-01-12 20:44:40 +09:00
K Lange
1f189ed82c Fixup string iteration for unicode strings 2021-01-12 20:11:52 +09:00
K. Lange
de71ada519 More mentions of unicode stuff 2021-01-12 19:44:18 +09:00
K. Lange
be8b8adbc6 Add simplistic utf-8 error detection 2021-01-12 19:42:52 +09:00
K. Lange
10f3c16e40 Major overhaul of strings to support Unicode 2021-01-12 19:23:14 +09:00
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