K. Lange
0a71a954c2
Make it easier to bundle C modules
2023-12-14 12:05:32 +09:00
K. Lange
5e0e3e0e22
Remove os module classes from BaseClasses
...
Nothing should have been referencing _Environ or stat_result.
We can move CompilerState and Cell into these available slots, as
those also should not have been used by libraries.
2023-12-14 10:09:55 +09:00
K. Lange
bd0b80827e
should pass CFLAGS to can-floor-without-libm.sh as it may depend on -O option
2023-12-14 10:05:01 +09:00
K. Lange
eb105690b5
Split off 'dis' as well
2023-12-14 09:55:02 +09:00
K. Lange
8425ed5a3b
os, time to C modules, as planned
2023-12-14 09:03:47 +09:00
K. Lange
91740c8573
Increase default recursion limit to 1000 to match CPython
2023-12-13 09:03:14 +09:00
K. Lange
f247bba985
Bind local name for decorated function early so it can be closed
2023-12-12 20:21:42 +09:00
K. Lange
0425becba9
Support start, end in str.startswith, str.endswith
2023-12-05 07:25:16 +09:00
K. Lange
fb6faaff1a
Remove support for implicit 'exception' name in 'except' blocks
2023-11-25 12:30:52 +09:00
K. Lange
d575bf7607
Handle case of a nested exception in a 'final'
2023-11-25 12:14:05 +09:00
K. Lange
01d377555a
Make tests not rely on 'exception' being an implicit name in 'except' blocks
2023-11-25 11:11:56 +09:00
K. Lange
dd9b84258b
Fix up edge cases in exception handling
2023-11-24 18:32:16 +09:00
K. Lange
f41253d9ca
Fresh version for next release cycle
2023-08-30 18:40:14 +09:00
K. Lange
d6486b590a
v1.4.0
2023-08-28 09:56:27 +09:00
K. Lange
c24a1ca633
shared object module paths should be split on /
2023-07-20 11:47:06 +09:00
K. Lange
a8e870cc87
v1.4.0b2
2023-07-07 09:38:17 +09:00
K. Lange
6c452a91e7
bool.__format__
2023-06-22 17:16:41 +09:00
K. Lange
cc763de706
Missing void in function prototype
2023-06-15 21:39:01 +09:00
K. Lange
eaece3db50
Experiment AF_INET6, AF_UNIX support
2023-06-15 15:09:53 +09:00
K. Lange
ed2405f46b
Add a quick introspection function since we lack __dict__
2023-06-14 13:10:57 +09:00
K. Lange
85319d7f27
Catch extraneous kwargs in __new__ with default __init__
2023-06-13 17:36:04 +09:00
K. Lange
011a33ff43
Clear exception flag when raising new exception in 'from ... import ...'
2023-06-13 16:42:46 +09:00
K. Lange
2bc4637f5c
Bump version to b1
2023-06-08 08:50:54 +09:00
K. Lange
f1003ef9d5
range.__contains__
2023-06-08 08:50:17 +09:00
K. Lange
b88267c828
No fallback print support for floats in KRK_NO_FLOAT
2023-05-30 09:26:26 +09:00
K. Lange
7c4d622d8a
No int-from-float in KRK_NO_FLOAT
2023-05-30 09:18:53 +09:00
K. Lange
f3b8858727
Ignore floats in str.__mod__ in KKR_NO_FLOAT
2023-05-30 09:10:43 +09:00
K. Lange
bff66e2b72
Replace STATIC_ONLY with KRK_STATIC_ONLY
2023-05-30 08:01:52 +09:00
K. Lange
358c6b1c78
Support building without floats
2023-05-30 07:59:28 +09:00
K. Lange
cd28d82939
implement int() with parseArgs
2023-04-20 14:26:32 +09:00
K. Lange
a5856ecd6d
ceil/floor/trunc should be able to return longs
2023-03-28 12:50:12 +09:00
K. Lange
0c40e8a6fc
Actually commit parseArgs test tool
2023-03-27 09:17:40 +09:00
K. Lange
3436afcf18
Convert non-floats in f, d parseArgs specifiers
2023-03-27 09:12:09 +09:00
K. Lange
e26391bc2f
Automatically detect if libm is needed to support floordiv
2023-03-27 09:11:40 +09:00
K. Lange
f09f62e441
Bump alpha number
2023-03-01 07:03:18 +09:00
K. Lange
47673877f0
Assignments to *expr sequences
2023-02-28 20:09:06 +09:00
K. Lange
05209793be
Expand *expr in list, set, tuple; **expr in dict
2023-02-28 17:47:45 +09:00
K. Lange
20154ba519
New opcodes to support *-expansion in collection expressions
2023-02-28 15:45:36 +09:00
K. Lange
8b99aa30f3
set.update
2023-02-28 15:44:31 +09:00
K. Lange
ed0342b955
Allow staticmethod, classmethod to be applied to native functions
...
This is a stop-gap before actually replacing these two functions with
descriptor objects like how they work in CPython, as that's a much
larger change that will take some time to finish.
2023-02-15 19:27:25 +09:00
K. Lange
b40b2a2f01
__get__ on super() should bind real class, not super class
2023-02-15 19:24:22 +09:00
K. Lange
7e15c40849
Support : in parseArgs format with same meaning as CPython ParseTuple
2023-02-14 22:13:31 +09:00
K. Lange
a113c5540d
Add ? option to krk_parseArgs, make ! work for everything
2023-02-13 10:07:41 +09:00
K. Lange
3f5693cf43
Expose krk_isSubClass
2023-02-12 15:09:29 +09:00
K. Lange
ca1a490bbb
Allow some very specific reassignments of __class__
2023-02-12 13:46:45 +09:00
K. Lange
8711f8cae7
Support __bool__
2023-02-12 13:38:28 +09:00
K. Lange
417a334fc0
All non-instant types should set allocSize to 0
2023-02-12 13:37:43 +09:00
K. Lange
7dc9e68367
Prevent object.__new__ from being used on classes with other C __new__ implementations
2023-02-12 07:40:05 +09:00
K. Lange
46b63fc871
Support upvalue cells as exposed objects
2023-02-12 07:40:05 +09:00
K. Lange
ffa5d7e611
krk_long_compare can not fail, so not sure why we think we can fail krk_long_add from that
2023-02-09 10:51:54 +09:00