K. Lange
5dfbf8ec17
Various cleanups
2021-03-08 16:36:12 +09:00
K. Lange
90f4c75127
Add enumerate()
2021-03-08 14:49:17 +09:00
K. Lange
36b2f40582
Really make sure we're breaking out of the right loop in list.extend() on exception
2021-03-08 14:48:59 +09:00
K. Lange
9229bc0899
Attach a dummy __doc__ for -c option so strings don't throw syntax error
2021-03-08 11:08:33 +09:00
K. Lange
e6ef1ea1e4
Add bin()
2021-03-08 10:52:57 +09:00
K. Lange
cebac67366
Add filter()
2021-03-08 10:28:24 +09:00
K. Lange
68cc31e24d
Add map()
2021-03-08 10:05:06 +09:00
K. Lange
0c9d0cff91
list.extend needs to bail earlier on exception (tbf everything does)
2021-03-08 10:03:43 +09:00
K Lange
57a5b891db
Add a handful of missing builtins
2021-03-07 23:39:12 +09:00
K. Lange
ab1fa2c4fe
Fix str.join() when argument is an iterable and not a native sequence
2021-03-07 22:37:00 +09:00
K. Lange
1809ebf99e
Okay quite a bit was wrong with that, but now it's right
2021-03-06 18:00:14 +09:00
K. Lange
0c08398e4a
Fix stack stupidity with generators
2021-03-06 17:20:02 +09:00
K. Lange
8dddcfa2e0
Don't use a leaky call to realpath in findInterpreter
2021-03-06 16:22:54 +09:00
K. Lange
35b4032de3
Support chained 'for's in generator expressions
2021-03-06 15:32:30 +09:00
K. Lange
0f6b74ff5b
Generator expressions as direct function arguments
2021-03-06 11:19:34 +09:00
K. Lange
e97e42afc9
Replace tuple comprehensions with generator expressions
2021-03-06 11:13:49 +09:00
K Lange
5d36129778
Financial contributions are welcome.
2021-03-05 11:41:04 +09:00
K. Lange
11f78e62bb
Concede defeat the language identification battle; we're _A_ Python?
2021-03-05 11:39:10 +09:00
K Lange
6a9668041f
Ship my own wcwidth for Windows and fix up the magic incantations to make UTF-8 in/out work
2021-03-04 22:01:23 +09:00
K. Lange
2fafc06203
Fix bad allocation size for generator objects
2021-03-04 18:45:12 +09:00
K. Lange
7aa4d3ce99
yield keyword; generator functions
2021-03-04 18:09:07 +09:00
K. Lange
5b6e3cbff1
Remove long-deprecated __list, __dict, __inrepr attributes
2021-03-04 14:23:32 +09:00
K. Lange
88c6d27569
Use a thread status flag to indicate interrupt status instead of trying to raise from the signal handler
2021-03-04 08:28:32 +09:00
K. Lange
37353c2b88
Move and expose dumpStack for use in debuggers
2021-03-04 08:28:32 +09:00
K Lange
3daf95bd47
(win32) only link static deps on the core library
2021-03-03 23:37:44 +09:00
K. Lange
a89c2bacef
Formalize the debugger interface and clean it up; add nice debugger to main interpreter executable
2021-03-03 20:52:32 +09:00
K. Lange
9ecbc894ed
Build against tcmalloc on win32
2021-03-03 10:41:11 +09:00
K. Lange
e06a132a21
Resolve link resolution issue on Darwin
2021-03-03 10:36:44 +09:00
K Lange
9faec7b318
Threading support in mingw win32 builds
2021-03-02 23:24:52 +09:00
K. Lange
f6558fd3fa
Fixup debugger bugs; add 'p' command
2021-03-02 16:29:15 +09:00
K. Lange
b943e5e9e3
Add a locals() function
2021-03-02 16:24:49 +09:00
K. Lange
59bb19b3cb
Attach more instruction operands to examine() results
2021-03-02 10:27:24 +09:00
K. Lange
b1d32fb606
Rudimentary hookable breakpoints/debugger
2021-03-01 23:20:25 +09:00
K. Lange
4b7cf2ec27
Fix operator precedence for unary 'not'
2021-03-01 14:56:40 +09:00
K. Lange
a65f2dcf81
Add 'assert' statement
2021-03-01 11:55:51 +09:00
K. Lange
5ce03ebcf5
(docs) change header link for generated doc pages
2021-02-28 23:04:36 +09:00
K. Lange
ebf94603a4
Fix incorrect offsets in closure instructions
2021-02-28 17:23:02 +09:00
K. Lange
8cf67cf7b2
Add static analysis methods to 'dis' module
2021-02-28 16:39:36 +09:00
K. Lange
c39063412e
Separate code objects into a different type at runtime
2021-02-28 16:39:25 +09:00
K. Lange
8ffd629250
Fix wrong KWARGS value when an argument after an expansion starts with an identifier
2021-02-27 20:10:49 +09:00
K Lange
4c94aab5c1
win32 build fixes
2021-02-26 22:18:40 +09:00
K. Lange
adfd8a6492
Fix bug with resizing local table when assigning names to exceptions
2021-02-26 15:28:03 +09:00
K. Lange
c50352d5a2
Add mkdir, stat to os module
2021-02-26 10:26:21 +09:00
K. Lange
135ad72612
Fix -C option
2021-02-25 10:40:18 +09:00
K. Lange
00fce076fe
Add __qualname__ to classes
2021-02-25 10:03:52 +09:00
K. Lange
1bf238ebc1
Have startModule attach the module to the modules table rather than the import logic doing it
2021-02-25 08:55:07 +09:00
K. Lange
bc856ac063
Ongoing documentation improvements
2021-02-25 08:50:37 +09:00
K. Lange
4c1fe774e7
Eliminate unused parameters to krk_compile, interpret, runfile, callfile
2021-02-25 08:17:19 +09:00
K Lange
77b7f3ab22
Attach modules in C extensions when using krk_makeClass
2021-02-24 23:02:50 +09:00
K Lange
8e1f5f0565
repr classes as <class 'module.Class'> like Python
...
- We were using "<type ...>" like Python2 does for built-ins?
But even Python 2 called user classes "<class ...>" - Python 3
calls both built-ins and user classes "class".
- Check if there's a __module__ name and use that as well, now
we look even more like Python!
2021-02-24 22:50:51 +09:00