Kanika Kapoor
e2286ad90f
Merge c048ec9faf4bfe02da004dce69471897933c3617 into c278d02131d4bf4de083b1d64bfe0927462be654
2026-01-02 19:51:38 +03: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
Kanika Kapoor
c048ec9faf
Fix context manager __exit__ not being called on exception ( #395 )
...
Problem: When an exception occurs in a WITH block, __exit__ was not called,
preventing proper cleanup of context managers.
Solution:
1. Wrap WITH block body in try-except structure
2. On normal exit: call __exit__(None, None, None)
3. On exception: call __exit__ with exception info before re-raising
Changes:
- compiler.c: Wrap WITH body in try-except, ensure __exit__ called in both paths
- ceval.c: Update OP_WITH_EXIT to accept three arguments (exc_type, exc_val, exc_tb)
- tests/520_context.py: Add test to verify __exit__ called on exceptions
2025-12-27 01:12:15 +05:30
blueloveTH
1e2135e153
discard '_'
2025-12-25 18:12:04 +08:00
blueloveTH
d6052da6ab
Delete picoterm_io.pyi
2025-12-25 17:52:02 +08:00
blueloveTH
16a7fda6c3
upgrade to v2.1.6
v2.1.6
2025-12-25 17:47:31 +08:00
blueloveTH
8ff3f44179
fix https://github.com/pocketpy/pocketpy/issues/394
2025-12-25 17:42:24 +08:00
blueloveTH
ecdea105d6
fix https://github.com/pocketpy/pocketpy/issues/408
2025-12-25 17:40:07 +08:00
blueloveTH
e23fd85ebd
add bin
2025-12-19 16:36:43 +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
9d2cb89b24
fix struct gen
2025-12-17 11:27:02 +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
13594f9bfe
improve ffigen 2
2025-12-17 00:03:48 +08:00
blueloveTH
671ea14c4f
improve ffigen 1
2025-12-16 23:29:05 +08:00
blueloveTH
05c47f1023
move files
2025-12-16 21:20:23 +08:00
blueloveTH
c21d73738c
Delete vfs.zip
2025-12-16 21:03:56 +08:00
blueloveTH
64ec1ed313
backup
2025-12-16 17:31:07 +08:00
blueloveTH
2eb84b562e
add stdc module
2025-12-16 17:10:45 +08:00
hibays
0eabbda7d4
fix pthreads under windows msys2 mingw ( #413 )
...
Co-authored-by: hibays <12765444+hibays@user.noreply.gitee.com>
2025-12-10 23:00:46 +08:00
blueloveTH
e3bd4cfa95
minor update
2025-12-10 00:29:40 +08:00
blueloveTH
5fd00512bf
Update main.c
2025-12-09 23:44:56 +08:00
blueloveTH
d2d4bfa29b
Revert "Update cute_png.c"
...
This reverts commit dbed079fa40fd25296609d927509c0d646b1eeae.
2025-12-09 23:38:27 +08:00
blueloveTH
dbed079fa4
Update cute_png.c
2025-12-09 23:35:23 +08:00
blueloveTH
db201f3f1f
Update cute_png.c
2025-12-09 23:12:27 +08:00
blueloveTH
480eb6cf36
Delete io.pyi
2025-12-09 22:01:16 +08:00
blueloveTH
1e17b49403
Update cute_png.c
2025-12-09 16:44:41 +08:00
blueloveTH
550f8c9d0e
minor fix
2025-12-09 16:31:50 +08:00
blueloveTH
0c004a9a16
Create io.pyi
2025-12-09 16:13:49 +08:00
blueloveTH
2684038ccf
backup
2025-12-09 16:04:38 +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
5c7fb79a14
support del slice for list
2025-12-09 13:43:33 +08:00
blueloveTH
f95b765207
Update cute_png.c
2025-12-07 21:47:25 +08:00
blueloveTH
cc95299cb4
Update cute_png.c
2025-12-07 21:41:28 +08:00
blueloveTH
98bf9c0c81
Update cute_png.c
2025-12-07 21:40:08 +08:00
blueloveTH
871bc77bd3
some fix
2025-12-07 21:26:03 +08:00
blueloveTH
d11c377f4c
some fix
2025-12-07 21:22:13 +08:00
blueloveTH
2ceea8b96d
add cute_png.Image
2025-12-07 21:14:59 +08:00
blueloveTH
195d69676f
Update array2d.c
v2.1.5
2025-12-06 21:43:29 +08:00
blueloveTH
096d93697a
Update array2d.c
2025-12-06 21:41:29 +08:00
blueloveTH
aa2f15fcb6
update to v2.1.5
2025-12-06 21:22:41 +08:00
zhs628
fc991ab697
Increase coverage 2025 12 01 ( #412 )
...
* 通过引发py_call错误覆盖相关调用者的ok==false分支
* Revert "通过引发py_call错误覆盖相关调用者的ok==false分支"
This reverts commit 36dc0b5d81a02a83dfdeca2d4d6d265f5f793b4b.
* add test
* rename test files
* fix bugs
* fix bugs
2025-12-04 21:01:29 +08:00
blueloveTH
10c53e0621
update cov
2025-12-02 22:04:42 +08:00
blueloveTH
ab513822b3
update cov
2025-12-02 21:37:47 +08:00