blueloveTH
5eaef2c900
update os
2024-04-14 14:19:08 +08:00
blueloveTH
c5e055e1a8
Update sys.md
2024-04-14 13:36:53 +08:00
blueloveTH
348b071c1e
fix test logic
2024-04-14 13:35:49 +08:00
blueloveTH
5d4294b457
add pkpy_set_main_argv
2024-04-14 13:29:20 +08:00
blueloveTH
14a9120d9b
fix test logic
2024-04-14 13:11:12 +08:00
blueloveTH
d3989474a7
some optimize
2024-04-14 12:32:45 +08:00
blueloveTH
50fe20b659
Update precompile.md
2024-04-14 02:11:16 +08:00
blueloveTH
2b74fc847e
Update precompile.md
2024-04-14 02:09:12 +08:00
blueloveTH
57574bd8be
some fix
2024-04-14 01:49:50 +08:00
blueloveTH
96eaeb49f5
some fix
2024-04-14 01:20:56 +08:00
blueloveTH
c07bf67714
some fix
2024-04-14 01:17:17 +08:00
blueloveTH
a54c7e4b03
add some docs
2024-04-14 00:17:02 +08:00
blueloveTH
7a145b6c02
Merge branch 'main' of https://github.com/pocketpy/pocketpy
2024-04-14 00:11:11 +08:00
BLUELOVETH
4d2af4b83d
allow next
to be compatible with cpython ( #241 )
...
* add `itertools`
* Update _generated.h
* allow `next` to be compatible with cpython
2024-04-14 00:08:41 +08:00
BLUELOVETH
cacc7274f7
prebuild sources ( #240 )
...
* add `itertools`
* Update _generated.h
2024-04-13 23:47:24 +08:00
BLUELOVETH
6bf645d738
add itertools
( #239 )
2024-04-13 23:44:07 +08:00
blueloveTH
d70f8d8f18
Update compiler.cpp
2024-04-13 23:35:04 +08:00
BLUELOVETH
ab96dbb028
Update typing.py
2024-04-13 23:34:29 +08:00
blueloveTH
1cc24d40a2
add compile
2024-04-13 23:20:50 +08:00
blueloveTH
43fb6a966b
Update error.cpp
2024-04-13 23:00:19 +08:00
blueloveTH
6028967abe
Update error.cpp
2024-04-13 22:59:14 +08:00
blueloveTH
0d41d40456
add precompile
2024-04-13 22:55:49 +08:00
blueloveTH
9855f4e681
Update compiler.cpp
2024-04-13 21:37:06 +08:00
blueloveTH
e02292c03d
add precompile
2024-04-13 21:35:25 +08:00
blueloveTH
790e87f688
add vec.__getitem__
2024-04-13 14:25:18 +08:00
blueloveTH
b95244ab52
Update CMakeLists.txt
2024-04-12 18:13:50 +08:00
blueloveTH
f7eecaa165
Update obj.h
2024-04-12 15:50:34 +08:00
blueloveTH
11def613b6
optimize is_type
2024-04-12 15:50:15 +08:00
blueloveTH
2129392b0e
Update dataclasses.cpp
2024-04-11 13:35:29 +08:00
blueloveTH
f53a46941a
deprecate *non_tagged*
2024-04-11 11:50:15 +08:00
blueloveTH
b3c898672e
Update vm.cpp
2024-04-11 11:31:46 +08:00
blueloveTH
df5f5b4e93
some fix
2024-04-11 11:28:48 +08:00
blueloveTH
1f4b72e010
fix function types
2024-04-11 11:21:35 +08:00
blueloveTH
1d97cc0824
Update linalg.h
2024-04-11 01:38:24 +08:00
blueloveTH
49ee693d40
optimize for empty function
2024-04-11 01:31:45 +08:00
blueloveTH
335d35cbc9
some fix
2024-04-06 18:47:10 +08:00
blueloveTH
dcb5f38ddf
make float
always 64-bit
2024-04-06 17:54:53 +08:00
blueloveTH
367d576a66
Create io.md
2024-04-06 17:24:26 +08:00
blueloveTH
2219809fb4
support bytes slice
2024-04-06 17:18:35 +08:00
blueloveTH
10ca25f6b0
add enum
module
2024-04-06 17:00:50 +08:00
blueloveTH
3b4d43714d
use std::type_index
2024-04-04 00:12:01 +08:00
blueloveTH
a5cb806749
some fix
2024-04-03 15:40:23 +08:00
blueloveTH
c0c1eda1f6
add ios.toolchain.cmake
2024-04-03 15:37:38 +08:00
albertexye
936870c1f0
Perform boundary checks before searching to prevent security vulnerabilities ( #237 )
...
* perform boundary check before searching to prevent security vulnerabilities
* when a negative start index is passed to str.find, 0 is used instead
* a ValueError is raised when argument 'start' is a negative integer
2024-04-02 13:38:45 +08:00
albertexye
b1115a4c8f
Check the size of fillchar passed to str methods (ljust, rjust) ( #236 )
...
* check the size of fillchar passed to str methods (ljust, rjust)
* count characters using u8_length instead of size
2024-04-02 02:41:45 +08:00
ykiko
cb15db1f0e
adoping a more efficient division algorithm for bigint. ( #232 )
...
* adoping a more efficient division algorithm for bigint.
* add test case.
* modify the implementation to binary search.
* fix type error.
* fix some error.
* remove extra zero.
* add some test cases.
* add some cases
* Update 09_long.py
* Update 09_long.py
---------
Co-authored-by: BLUELOVETH <blueloveTH@foxmail.com>
2024-03-29 03:00:39 +08:00
blueloveTH
e86baa2e2f
add optimized opcodes for FOR_ITER
s
2024-03-29 01:29:32 +08:00
blueloveTH
41e9900b37
Update io.cpp
2024-03-29 00:40:54 +08:00
ykiko
8ca7e9f6cf
add bit_length method to int. ( #233 )
...
* add bit_length method to int.
* Update pocketpy.cpp
* Update 01_int.py
* Update 01_int.py
---------
Co-authored-by: BLUELOVETH <blueloveTH@foxmail.com>
2024-03-28 19:51:39 +08:00
blueloveTH
c77fef35a2
refactor defaultdict
2024-03-28 19:21:56 +08:00