blueloveTH
9a5ff3440a
make range faster
2024-05-25 14:35:56 +08:00
blueloveTH
2081dcf979
remove vm
for Dict()
2024-05-19 19:54:36 +08:00
blueloveTH
a09def4ec3
some fix
2024-05-13 16:16:17 +08:00
blueloveTH
bf481b84dc
some fix
2024-05-13 02:20:11 +08:00
blueloveTH
cef275f900
some fix
2024-05-13 01:59:38 +08:00
blueloveTH
529c23043c
a lot of fix
2024-05-13 01:24:17 +08:00
blueloveTH
f5a4c37968
init
2024-05-12 23:43:06 +08:00
blueloveTH
82d192e8da
replace PyObject*
with PyVar
2024-05-12 20:16:55 +08:00
blueloveTH
8745f323b8
re-add operator
module
2024-05-10 20:29:23 +08:00
blueloveTH
5cfd66f8b2
impl py_exec
and py_eval
2024-05-10 14:03:00 +08:00
blueloveTH
331dedcd28
add py_exec
and py_eval
prototype
2024-05-10 12:06:25 +08:00
blueloveTH
44aed24d3b
add function
2024-05-09 17:26:11 +08:00
blueloveTH
eae0aa6c8b
some fix
2024-05-05 11:36:17 +08:00
blueloveTH
0f47105b27
doc fix
2024-05-05 10:51:06 +08:00
blueloveTH
d4192be0e4
fix py_list
2024-05-04 21:56:47 +08:00
blueloveTH
37c28e0061
some fix
2024-05-04 21:46:35 +08:00
blueloveTH
425fffec74
remove bind_constructor
2024-05-04 13:42:39 +08:00
blueloveTH
3c480cee11
remove old bind_func
2024-05-04 13:25:30 +08:00
blueloveTH
bb27112575
some refactor
2024-05-03 20:54:18 +08:00
blueloveTH
fd12deeec3
remove VM::top_frame
2024-05-03 19:49:12 +08:00
blueloveTH
4f520a0c26
some rename
2024-05-03 19:45:05 +08:00
blueloveTH
9331e8eae0
some rename
2024-05-03 19:39:16 +08:00
blueloveTH
3278699d03
remove operator
module
2024-05-03 17:41:01 +08:00
blueloveTH
022e9c53fb
move min/max
to cpp
2024-05-03 17:38:32 +08:00
blueloveTH
dcb970d327
remove VAR_T
2024-05-02 16:24:13 +08:00
blueloveTH
f944113567
remove PY_CLASS
macro
2024-05-02 15:55:22 +08:00
blueloveTH
aba90c1eb1
some optimize
2024-04-29 21:45:10 +08:00
blueloveTH
f619cee961
add FOR_ITER_UNPACK
2024-04-28 20:04:13 +08:00
blueloveTH
6cc4d9c5cc
add PK_ENABLE_PROFILER
2024-04-27 20:01:58 +08:00
blueloveTH
99195ac490
fix dict.__init__
2024-04-26 16:35:54 +08:00
blueloveTH
6189aaca94
use cpython style next()
2024-04-24 22:06:02 +08:00
blueloveTH
508cbfdb75
some refactor
2024-04-24 17:54:55 +08:00
blueloveTH
c6652736f3
Update pocketpy.cpp
2024-04-18 22:29:59 +08:00
blueloveTH
0ec01abdeb
refactor __doc__
and rm __signature__
2024-04-16 23:06:43 +08:00
blueloveTH
6ec6c5290b
some fix
2024-04-14 21:26:03 +08:00
blueloveTH
d87c9ff850
add breakpoint
2024-04-14 20:33:04 +08:00
blueloveTH
b6d62c9d89
add breakpoint
2024-04-14 20:14:51 +08:00
blueloveTH
d3989474a7
some optimize
2024-04-14 12:32:45 +08:00
blueloveTH
7a145b6c02
Merge branch 'main' of https://github.com/pocketpy/pocketpy
2024-04-14 00:11:11 +08:00
BLUELOVETH
6bf645d738
add itertools
( #239 )
2024-04-13 23:44:07 +08:00
blueloveTH
1cc24d40a2
add compile
2024-04-13 23:20:50 +08:00
blueloveTH
f53a46941a
deprecate *non_tagged*
2024-04-11 11:50:15 +08:00
blueloveTH
dcb5f38ddf
make float
always 64-bit
2024-04-06 17:54:53 +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
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
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