Commit Graph

1371 Commits

Author SHA1 Message Date
K. Lange
efca612a20 Support Ellipsis in tools/compile.c 2024-01-03 14:34:17 +09:00
K. Lange
ae6ec7f233 Implement Ellipsis (...) 2024-01-01 19:36:55 +09:00
K. Lange
7f397b2c2c object.__str__ should call repr; remove extraneous __str__/__repr__ aliases 2024-01-01 19:31:54 +09:00
K. Lange
98bd980c2a Try to reduce size of debug functions by building them with -Os 2023-12-31 18:52:18 +09:00
K. Lange
a7c2f52814 Should be able to compile with just KRK_DISABLE_DEBUG without issues 2023-12-31 18:51:27 +09:00
K. Lange
a386ab7df0 Remove the long-deprecated KRK_FUNC, KRK_METHOD macros 2023-12-31 16:25:52 +09:00
K. Lange
886da1a134 Remove krk_printValue, move krk_printValueSafe to debug.c 2023-12-31 16:25:00 +09:00
K. Lange
07898d31b9 Expose expression span functionality in dis module 2023-12-31 09:46:20 +09:00
K. Lange
f3191a6067 Underline expressions in exception tracebacks.
Implements Python's PEP 657 by adding debug information
to map opcodes to their source expressions.
2023-12-31 09:46:20 +09:00
K. Lange
0c52d44d3e names array is not NULL-terminated; use 'oarg' which should be count of names at this point 2023-12-30 11:45:23 +09:00
K. Lange
c7caf52f3e Use parseArgs in dis module 2023-12-28 22:29:30 +09:00
K. Lange
643313baa0 Fix dropped references to keyword arguments in parseArgs 2023-12-28 22:04:48 +09:00
K. Lange
ebe1815075 Don't bother getting the alternate function name if we aren't raising an exception 2023-12-28 19:25:56 +09:00
K. Lange
e9b0269c91 Avoid creating strings for argument names unless necessary 2023-12-28 19:11:22 +09:00
K. Lange
d1bac84663 Cleanup headers 2023-12-28 10:20:42 +09:00
K. Lange
7023e2e1fe We've made so many incompatible changes this should be 1.5 now 2023-12-24 09:12:29 +09:00
K. Lange
4ac444be47 Generate more docs 2023-12-24 09:09:38 +09:00
K. Lange
9633ee3f72 New suite of time functions 2023-12-24 09:09:24 +09:00
K. Lange
3a74ef5e21 Add 'quiet' option, get_recursion_depth 2023-12-24 09:09:07 +09:00
K. Lange
416ed28206 Make maximumCallDepth thread-local, expose changing it when feasible 2023-12-24 09:05:52 +09:00
K. Lange
80754593ad Add pairing heap module 2023-12-22 08:26:57 +09:00
K. Lange
2685f49d24 Remove modules from import table if they raised exceptions on import 2023-12-21 10:50:08 +09:00
K. Lange
fe430bbb19 Provide a simpler interface for setting up modules that sets __name__ 2023-12-21 10:28:44 +09:00
K. Lange
6ea43c35e0 Include argument name in parseArgs type errors 2023-12-15 17:24:19 +09:00
K. Lange
031ca32ab0 extract fileio to a C module 2023-12-14 20:51:59 +09:00
K. Lange
c4d8e8de6b Accept file, flush in print 2023-12-14 20:45:10 +09:00
K. Lange
02c6f58f3c Separate 'gc' into shared module 2023-12-14 13:47:23 +09:00
K. Lange
874882d926 docs: stop calling everything the base class of all objects just because it doesn't have its own __doc__ 2023-12-14 12:30:55 +09:00
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