Commit Graph

1277 Commits

Author SHA1 Message Date
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
K. Lange
0f3fe14aa3 Add a test case for that 2023-02-09 10:48:37 +09:00
K. Lange
7ae6968b5c Fix bug when adding long '-n' and 'n' 2023-02-09 10:39:24 +09:00
K. Lange
c5c8c163af Additional documentation cleanup 2023-01-28 14:20:19 +09:00
K. Lange
361f915cce Only descriptors with __set__ methods should be __get__'d preemptively 2023-01-26 20:33:40 +09:00
K. Lange
1e044c140d Support for __init_subclass__ 2023-01-26 20:01:39 +09:00
K. Lange
5d1b73b3a2 Fixes for __get__, super() with class methods, etc. 2023-01-26 19:25:10 +09:00
K. Lange
867ce85fee Additional cleanup 2023-01-26 17:52:06 +09:00
K. Lange
69e0161ce4 Ensure metaclasses stick around 2023-01-26 12:08:11 +09:00
K. Lange
81abff3d75 __init__ should always return None 2023-01-26 12:05:53 +09:00
K. Lange
8e80e04a33 Fix up implict class/static methods 2023-01-25 23:50:35 +09:00
K. Lange
429c699c00 Metaclass determination 2023-01-25 23:23:45 +09:00
K. Lange
47d703cb1e Cleanup 2023-01-25 23:23:39 +09:00
K. Lange
a6373e66c9 functioning metaclasses 2023-01-25 22:51:23 +09:00
K. Lange
617d30d804 Very initial rebuild of class creation 2023-01-25 22:10:13 +09:00
K. Lange
f9df8b22ef initial support for __new__ 2023-01-24 18:15:13 +09:00
K. Lange
eef955935d 'hasKw' is not sufficient to check if a function received kwargs 2022-12-14 06:11:51 +09:00