1418 Commits

Author SHA1 Message Date
Tesselmax Opensource
14d1572328
Merge 46cc281099bfad78ee697e700330314307235695 into acc4f4104bb9e6a5ad5f34a4f9c8e2f354cec20c 2026-07-26 16:08:20 +08:00
blueloveTH
beb1557d00 bump to v2.2.0 2026-07-22 12:49:00 +08:00
BLUELOVETH
4e2b40db2d
test fastpath for self.* read (#535)
* test fastpath for `self.*` read

* bak
2026-07-22 12:36:58 +08:00
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
21ff0751dc fix error name 2026-07-06 17:42:01 +08:00
felfoldy
21248a0baf
Add inspect.signature (#526)
* Add inspect.signature tests

* Implement inspect.signature
2026-07-06 12:00:58 +08:00
Rob McMullen
664ce091f8
Added str.splitlines (#523)
* uses same algorithm as CPython, supports all CPython eol characters
  in https://docs.python.org/3/library/stdtypes.html#str.splitlines
2026-06-28 21:56:47 +08:00
blueloveTH
94e71d8581 expose divmod 2026-06-24 16:38:18 +08:00
Steve Chen
894ace2963
Fix JSON integer and float serialization. (#519)
* Fix JSON integer and float serialization.

* Simplify float serialization round-trip fix

* fix round trip check

* fix lexer EOF OOB read and list.sort comparator signature

* revert

* fix cases

* Update os.c

* add `long_v1`

---------

Co-authored-by: blueloveTH <blueloveTH@foxmail.com>
2026-06-18 11:39:41 +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
c39d86e999 add __mod__ 2026-04-29 12:54:04 +08:00
blueloveTH
d62b1b4eec remove linalg compat script 2026-04-07 10:58:12 +08:00
blueloveTH
6e3ed84a9e fix stdc.memcpy 2026-04-04 13:24:25 +08:00
blueloveTH
9a57b281e8 add := fix #446 2026-03-28 17:53:39 +08:00
blueloveTH
005a2725a1 add PK_ENABLE_DLL 2026-03-24 11:02:34 +08:00
Daniel Calderón
d03b067666
adding missing header guard (#483) 2026-03-23 11:58:33 +08:00
Jason Matthew Suhari
0676b21da2
fix: save stack checkpoint before pushing args in operator() (#479)
* fix: capture stack checkpoint before pushing args in operator() (#469)

* test: add regression test for operator() python error propagation (#469)
2026-03-20 13:22:25 +08:00
blueloveTH
cf70668a2f improve py_inspect_currentfunction 2026-03-13 22:05:52 +08:00
blueloveTH
5f9d44f451 Update pocketpy.h 2026-02-27 18:16:14 +08:00
blueloveTH
fe56ceb82e Update pocketpy.h 2026-02-27 18:11:38 +08:00
blueloveTH
440acd82f8 refactor chunked_array2d 2026-02-23 00:35:00 +08:00
blueloveTH
1d567445ed Update vmath.pyi 2026-02-22 21:52:56 +08:00
blueloveTH
427d2293e0 add vec4i 2026-02-22 21:47:34 +08:00
blueloveTH
05c0337ba0 Update _log_spline_tbl.h 2026-02-21 21:32:52 +08:00
blueloveTH
9f1ac4d6c3 fix dmath 2026-02-21 21:30:33 +08:00
blueloveTH
aaf611eff3 up 2026-02-21 21:08:33 +08:00
blueloveTH
52aed673dc Update array2d.pyi 2026-02-08 17:19:49 +08:00
blueloveTH
cf965a1957 fix #456 2026-01-30 14:40:05 +08:00
blueloveTH
48b70c944e fix #426 2026-01-26 17:50:03 +08:00
blueloveTH
2281b9bb44 fix #424 2026-01-26 17:24:29 +08:00
blueloveTH
82bd2838ce fix abs name 2026-01-06 14:32:00 +08:00
blueloveTH
45f18f8431 add some more registers 2026-01-06 14:09:11 +08:00
blueloveTH
0bdbf17d46 add mark for serializer 2026-01-06 13:53:26 +08:00
blueloveTH
07a65a8f21 add py_execo 2026-01-06 13:24:06 +08:00
blueloveTH
b4ba0d91d5 minor fix 2026-01-06 13:08:14 +08:00
blueloveTH
b775d239a5 fix import pyc 2026-01-06 11:24:33 +08:00
BLUELOVETH
5f7bf4924b
Support running compiled bytecodes (#421) 2026-01-05 19:40:21 +08:00
Phil Chang
c278d02131
Use inline instead of __forceinline when compiling with clang-cl on Windows (#420)
* Add extern specifier for inline functions inside C source files

* Force clang-cl to use inline instead of __forceinline
2026-01-02 23:01:34 +08:00
blueloveTH
bbddcc7ef7 fix #419 2026-01-02 16:12:09 +08:00
blueloveTH
d6052da6ab Delete picoterm_io.pyi 2025-12-25 17:52:02 +08:00
blueloveTH
16a7fda6c3 upgrade to v2.1.6 2025-12-25 17:47:31 +08:00
blueloveTH
dd9004501a add periphery led 2025-12-18 18:27:40 +08:00
blueloveTH
b4d035a912 fix periphery 2025-12-18 18:26:20 +08:00
blueloveTH
36ee9dddd8 improve periphery 2025-12-18 18:06:27 +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
20ad99fbaf add periphery 2025-12-17 11:11:28 +08:00
blueloveTH
671ea14c4f improve ffigen 1 2025-12-16 23:29:05 +08:00
blueloveTH
64ec1ed313 backup 2025-12-16 17:31:07 +08:00