2460 Commits

Author SHA1 Message Date
BLUELOVETH
6bf645d738
add itertools (#239) 2024-04-13 23:44:07 +08:00
BLUELOVETH
ab96dbb028
Update typing.py 2024-04-13 23:34:29 +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_ITERs 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
blueloveTH
d7545071e5 optimize int() and float() 2024-03-28 17:50:23 +08:00
blueloveTH
79cafcf32c improve io 2024-03-28 15:48:59 +08:00
blueloveTH
eaf231fd9d refactor io 2024-03-28 15:20:23 +08:00
blueloveTH
d81a1c5415 add bytes.__add__ 2024-03-28 15:04:10 +08:00
albertexye
142e4fd45f
Sort names returned by the built-in dir method (#231)
* Sort names returned by the built-in dir method

* some fix

---------

Co-authored-by: blueloveTH <blueloveth@foxmail.com>
v1.4.3
2024-03-27 16:07:35 +08:00
blueloveTH
665fb04b8f some change 2024-03-26 16:14:47 +08:00
blueloveTH
60aa4fe93d some change 2024-03-26 16:06:18 +08:00
blueloveTH
636944632d fix a bug 2024-03-24 23:20:23 +08:00
blueloveTH
a79e2cd3b8 some fix 2024-03-24 22:45:24 +08:00
blueloveTH
92bc4b5495 Update common.h 2024-03-24 20:19:04 +08:00
blueloveTH
568221ab5a fix a 32bit bug 2024-03-24 20:17:40 +08:00
blueloveTH
50cde5ff03 some fix 2024-03-24 20:07:28 +08:00
blueloveTH
3f5e3c3968 Update export.h 2024-03-24 18:54:35 +08:00
blueloveTH
2153113240 some fix 2024-03-24 18:16:09 +08:00
blueloveTH
dc20c56391 some fix 2024-03-24 18:01:03 +08:00
blueloveTH
efc5755d78 some fix 2024-03-24 17:48:19 +08:00
blueloveTH
c60fdd29ab update prebuild.py 2024-03-24 17:39:41 +08:00
blueloveTH
881fbb01dd some fix 2024-03-23 16:51:48 +08:00
blueloveTH
3e5954ab45 Update build_ios.sh 2024-03-23 15:39:53 +08:00
blueloveTH
cd554f29ae Update build_ios.sh 2024-03-23 15:19:23 +08:00
blueloveTH
957f037b8d add ios xcframework build 2024-03-23 14:48:36 +08:00
blueloveTH
0480919906 some change about iOS build 2024-03-23 12:47:02 +08:00