Tesselmax
46cc281099
Add py_Callbacks.open_file hook for embedder file-access policy
...
Adds an optional open_file callback to py_Callbacks, consulted before
script-reachable file operations:
- io.FileIO(path, mode): called with the fopen mode string before the open
- os.remove(path): called with the literal "delete"
Returning false rejects the operation and raises OSError; returning true
(or leaving the callback NULL, which is the default) allows it. Existing
embedders are unaffected -- the default is NULL and behavior is unchanged.
This lets an embedder enforce its own path policy using its own
canonicalization instead of reimplementing path checks inside the VM.
2026-07-16 12:51:12 -07:00
thermalPasteMilkshake
e144785436
re-checking ( #531 )
2026-07-11 10:25:27 +08:00
BLUELOVETH
c624833cfb
Add more gc control to improve performance ( #510 )
...
* add more gc control
* fix
* Update gc.c
* Update ceval.c
* [no ci] Update 711_gc.py
2026-04-29 13:55:41 +08:00
blueloveTH
cf70668a2f
improve py_inspect_currentfunction
2026-03-13 22:05:52 +08:00
blueloveTH
b07db073fd
remove colorcvt
2026-02-21 21:12:52 +08:00
blueloveTH
cf965a1957
fix #456
2026-01-30 14:40:05 +08:00
blueloveTH
45f18f8431
add some more registers
2026-01-06 14:09:11 +08:00
BLUELOVETH
5f7bf4924b
Support running compiled bytecodes ( #421 )
2026-01-05 19:40:21 +08:00
blueloveTH
63334872f6
rename fix
2025-12-17 11:19:49 +08:00
blueloveTH
b60710aa3d
fix add module
2025-12-17 11:18:11 +08:00
blueloveTH
2eb84b562e
add stdc module
2025-12-16 17:10:45 +08:00
blueloveTH
a094dcb34d
Update vm.c
2025-12-09 14:47:58 +08:00
blueloveTH
3731efba5c
Update vm.c
2025-12-09 14:47:04 +08:00
blueloveTH
6cad72453b
fix error of "A() takes no arguments"
2025-12-09 14:45:08 +08:00
BLUELOVETH
c45a5df1e8
add setup_gc_debug_callback ( #406 )
...
* [no ci] backup
* [no ci] backup
* [no ci] fix
* [no ci] fix
* [no ci] fix
* [no ci] fix
* [no ci] fix
* [no ci] fix
* [no ci] fix
* [no ci] fix
---------
Co-authored-by: 张皓晟 <2067144018@qq.com>
2025-11-23 16:30:22 +08:00
blueloveTH
4827e6dea3
add picoterm module
2025-11-23 00:14:14 +08:00
blueloveTH
585fffbb27
add msgpack
...
Update CMakeLists.txt
Update CMakeLists.txt
Update CMakeLists.txt
2025-11-11 01:01:21 +08:00
blueloveTH
6038692611
backup
2025-10-22 15:36:56 +08:00
blueloveTH
7efcbb136e
fix #400
2025-10-20 17:52:42 +08:00
blueloveTH
c658b5a7a4
backup
2025-08-31 00:09:55 +08:00
blueloveTH
33be8e869a
some refactor
2025-08-30 21:44:33 +08:00
blueloveTH
9a23eb6c9e
fix a bug
2025-08-26 00:32:22 +08:00
blueloveTH
0ce88fa70c
backup
2025-08-25 20:16:11 +08:00
blueloveTH
b786fda39d
add exception breakpoint
2025-08-18 11:40:13 +08:00
blueloveTH
166b437498
fix line_profiler
2025-08-15 16:02:27 +08:00
blueloveTH
03ee6563c8
add profiler
2025-08-08 14:26:27 +08:00
blueloveTH
169e825197
add profiler
2025-08-08 11:28:50 +08:00
blueloveTH
391e83d659
add cute_png module from cute_headers
2025-08-06 14:25:53 +08:00
blueloveTH
ca086f9732
fix https://github.com/pocketpy/pocketpy/issues/363
2025-07-22 15:01:06 +08:00
blueloveTH
7d484f8fa3
fix config.h
2025-07-01 15:13:46 +08:00
blueloveTH
fd6f0d76b2
fix https://github.com/pocketpy/pocketpy/issues/376
2025-06-27 11:18:32 +08:00
blueloveTH
e187a61624
fix module reload bug
2025-06-22 16:31:46 +08:00
blueloveTH
68a2186728
improve module
2025-06-22 13:37:20 +08:00
blueloveTH
0b09246a6d
add RELOAD_MODE
2025-06-22 13:01:50 +08:00
blueloveTH
790710b1a4
backup
2025-06-22 01:12:39 +08:00
blueloveTH
0f8c7d6d11
some refactor
2025-06-22 00:31:19 +08:00
blueloveTH
02b27b66c5
some builtin changes
2025-06-21 20:33:47 +08:00
blueloveTH
4bb0ae3035
some optimize
2025-06-20 18:24:30 +08:00
blueloveTH
5666d2c580
replace BinTree with CachedNames
2025-06-20 17:32:53 +08:00
blueloveTH
57cd40da6f
add compile time func
2025-06-17 23:22:13 +08:00
blueloveTH
c29b389c78
revert
2025-06-17 04:59:44 +08:00
blueloveTH
04a44a4aa6
fix path_len
2025-06-14 19:26:14 +08:00
blueloveTH
4fd47072fc
fix py_name2ref
...
Update vm.c
backup
2025-06-13 17:29:42 +08:00
blueloveTH
141f187705
add py_tpclassattrs and py_tpbase
2025-06-10 23:07:53 +08:00
blueloveTH
70e824a6b6
fix #371
2025-06-07 02:19:55 +08:00
blueloveTH
67296767c7
add gc_mark
2025-06-07 01:34:15 +08:00
BLUELOVETH
a53af18ee8
Make py_Name opaque pointer ( #370 )
...
* backup
* backup
* backup
* backup
* backup
* backup
* Update codeobject.c
* backup
* Update ceval.c
* backup
* backup
* fix all
* revert ci
* fix all
* fix all
* fix pybind
* add `PK_ENABLE_CUSTOM_SNAME`
2025-06-05 22:26:28 +08:00
blueloveTH
45828643b7
fix line_profiler
2025-05-28 17:33:03 +08:00
blueloveTH
f4b2cd4a5f
fix line_profiler
2025-05-28 11:24:36 +08:00
blueloveTH
c4ab63ca15
draft LineProfiler
2025-05-28 01:49:33 +08:00