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
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
blueloveTH
b6b914e312
Update memory.cpp
2024-03-22 12:33:15 +08:00
blueloveTH
fbd825951c
Update memory.cpp
2024-03-22 12:31:10 +08:00
blueloveTH
736df8ad31
Update error.h
2024-03-22 12:16:28 +08:00
blueloveTH
fc98c526ea
add memory info api
2024-03-22 11:45:43 +08:00
blueloveTH
e11e888acd
some doc fix
2024-03-21 16:41:00 +08:00
blueloveTH
4997783488
update docs
2024-03-21 16:36:53 +08:00
blueloveTH
f9f3827d5d
remove a tmp var
2024-03-18 12:55:42 +08:00
blueloveTH
5cb31814be
some fix
2024-03-18 12:42:05 +08:00
blueloveTH
6b57c684e4
some optimize
2024-03-17 19:22:17 +08:00
blueloveTH
f48db51d7c
some optimize
2024-03-17 19:10:45 +08:00
blueloveTH
0d0261c069
some fix
2024-03-17 19:02:04 +08:00
blueloveTH
150af1b714
some fix
2024-03-17 18:59:58 +08:00
blueloveTH
f9cc2f2f29
some optimize
2024-03-17 18:50:44 +08:00
blueloveTH
fd082c20e6
add some cases
2024-03-17 18:36:08 +08:00
blueloveTH
f62ec6d316
add noexcept
2024-03-17 18:08:54 +08:00
blueloveTH
3aea1647d0
some fix
2024-03-17 18:06:38 +08:00
blueloveTH
92f9b93245
some fix
2024-03-17 17:58:16 +08:00