Commit Graph

70 Commits

Author SHA1 Message Date
K. Lange
50e4902170 Hacky implementation of @staticmethod, @property, mb even @classmethod 2021-01-23 19:38:45 +09:00
K. Lange
e510deaf7f Get rid of KrkInstance->_internal and just let C stuff extend KrkInstance 2021-01-22 15:12:19 +09:00
K. Lange
b3bc879c8c github's markdown parser doesn't like that 2021-01-21 08:18:44 +09:00
K. Lange
6cf0efed5d README typos 2021-01-21 08:17:37 +09:00
K. Lange
895eb367ee Support comprehensions for dicts, tuples. 2021-01-19 21:06:52 +09:00
K Lange
a9b04cceb2 Experimental Windows support 2021-01-19 12:52:22 +09:00
K. Lange
7c230c3d12 Fixes 2021-01-18 20:45:07 +09:00
K. Lange
abfaa50bee Implement module packages 2021-01-17 22:01:58 +09:00
K. Lange
014b8bcee1 Add note about WASM builds to readme 2021-01-16 18:30:53 +09:00
K. Lange
13bbc3ae2d Change 'let' semantics to do unpacking; support unpacking more things 2021-01-14 21:16:48 +09:00
K. Lange
63ba9cbced More readme cleanup on strings 2021-01-13 07:57:16 +09:00
K. Lange
a6432e476b missing close paren 2021-01-13 07:39:24 +09:00
K. Lange
5f0f7ea0b1 Some notes on Unicode 2021-01-13 07:36:46 +09:00
K. Lange
11cb36b751 README cleanup 2021-01-12 22:19:13 +09:00
K. Lange
de71ada519 More mentions of unicode stuff 2021-01-12 19:44:18 +09:00
K. Lange
10f3c16e40 Major overhaul of strings to support Unicode 2021-01-12 19:23:14 +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
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
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
35570e7ee9 Support complex argument expansion in C functions 2021-01-10 18:49:52 +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
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
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
656942f612 Cleanup and useful builtins 2021-01-09 10:12:50 +09:00
K. Lange
2b6840b07d Add logo? 2021-01-08 23:12:16 +09:00
K. Lange
0599ad0775 Replace Makefile.static with a complicated combination of config options 2021-01-08 20:26:29 +09:00
K. Lange
8f9c1a4c1d Switch C-style loops to semicolons before I regret having used commas 2021-01-08 17:14:42 +09:00
K. Lange
f21a959b14 Add instructions for static builds 2021-01-08 12:12:44 +09:00
K. Lange
cdd3272d0e Accept tabs as being equivalent to eight spaces, but no mixing on a single line 2021-01-08 07:05:33 +09:00
K Lange
a1fbaecabd Readme and doc updates 2021-01-07 22:45:52 +09:00
K Lange
f9832be57c Typos and such 2021-01-07 20:42:25 +09:00
K. Lange
902d2222b5 Make modules work like in Python. TODO: module class for better repring 2021-01-07 09:50:58 +09:00
K Lange
ff8ed02ebd Make print() a function before it's too late 2021-01-04 23:34:10 +09:00
K. Lange
ce7f74cd03 Clean up README, update some exceptions, add notes on *args and **kwargs 2021-01-03 22:36:41 +09:00
K. Lange
e542b191e0 Another README section 2021-01-03 12:40:00 +09:00
K. Lange
76e70b79d0 Add default argument values.
Unlike in Python, I'm taking the approach of evaluating these at function
call time rather than definition time. Assigning things like empty lists/dicts
to default arguments has always been a ridiculous thing in Python, and I don't
want to make that mistake. I'm pretty sure Python only continues to do that
because it was something they didn't want to break for backwards compatibility
reasons even in Python 3.
2021-01-03 12:32:04 +09:00