pikastech
71d7298057
support string.strip(ch)
2022-09-29 18:47:03 +08:00
pikastech
d63d50a322
use pika_float to support switch for float/double
...
update pre-comp
update pre-win
2022-09-28 11:54:10 +08:00
pikastech
fd4fb54dc7
fix ref err in function local context
...
update date
2022-09-28 10:57:19 +08:00
pikastech
efd9abbf17
add mem check
...
add big_dict_update test
2022-09-27 21:30:30 +08:00
pikastech
76d03f3581
fix @PIKA_C_MACRO_IF
...
support 'hasattr' 'getattr' for c module
2022-09-26 11:39:33 +08:00
pikastech
74a51cd053
support hasattr()
, proxy test ok
2022-09-26 10:14:01 +08:00
pikastech
52995e6ab2
support list.pop()
...
support list.remove()
support list.insert()
2022-09-23 12:38:04 +08:00
pikastech
4e447d89af
support bytes(list)
2022-09-19 10:01:16 +08:00
pikastech
f2e184aa81
support list(str)
2022-09-19 09:53:27 +08:00
pikastech
d3026c7c99
support slice utf8 for str
...
add test for slice utf-8
2022-09-15 16:27:02 +08:00
pikastech
8acef2efde
support pks_vm_exit()
2022-09-14 13:46:19 +08:00
pikastech
3a7796251f
support range(a), range(a, b, step)
2022-09-12 20:01:30 +08:00
pikastech
7f193cec04
support dict.items()
2022-09-11 00:51:17 +08:00
pikastech
10c7f1a261
add __callback inline bytecode
...
impl strlwr for linux, merge codede.c to _String.c
2022-09-08 08:17:01 +08:00
pikastech
9cb3f586d5
fix PIKA_STRING_UTF8_EANBLE = 0
2022-09-06 08:19:05 +08:00
pikastech
91461e3f17
fix warnings
2022-09-05 22:37:31 +08:00
pikastech
d5ab75af41
fix some wars, fix mem leak, add unit test
2022-09-05 22:30:28 +08:00
pikastech
45c70ffe79
support __contains__ for dict
2022-09-05 15:39:15 +08:00
pikastech
b298e152e5
support __contain__
...
support __contains__ for list
2022-09-05 15:21:49 +08:00
pikastech
6257ab7f06
fix print sort
2022-09-04 21:19:41 +08:00
pikastech
d4a0b37958
support **keys in cmodule
...
support print('test', end='')
2022-09-02 00:33:50 +08:00
李昂
7d191fc2ea
!108 keys
...
* def foo(**keys) in py is ok
* __kwargs is ok
* gening dict
* fix arg->flag init faild
* supporting **keys
2022-08-30 16:40:04 +00:00
pikastech
718b11d482
support try except in cmodule
...
not use try_top or try_inner
try dict nofound and try len is tested ok
2022-08-30 15:37:09 +08:00
pikastech
7e15e5e202
support __add__()
for list
2022-08-16 17:40:11 +08:00
pikastech
d01ca77a51
support *var in py function
2022-08-16 12:21:11 +08:00
pikastech
77e291101f
improve ABSTRACT_METHOD error info.
2022-08-16 11:05:19 +08:00
pikastech
bb54c2e719
support setattr
and getattr
...
run tests() in cases is ok
2022-08-11 17:39:38 +08:00
pikastech
ac97532a7a
support exec()
builtin
2022-08-10 12:07:32 +08:00
pikastech
e0eee73209
support dir()
builtin, fix str disp in list...
2022-08-10 11:49:54 +08:00
pikastech
57d89e256f
support try_expect for open
2022-08-06 17:59:32 +08:00
pikastech
525f08e088
fix for in dict
2022-08-02 13:52:20 +08:00
pikastech
4899884747
use u32 for mem info
...
add speed by using register in for-loop
fix ci_benchmark
2022-07-31 11:14:49 +08:00
pikastech
a40f68e9b2
use more inline in PikaVM
...
use static refcnt in PikaObj
use static _clsptr
2022-07-30 21:26:46 +08:00
pikastech
117096a764
correct the sort of fun dec in .h
...
fix .h and .pyi
update PikaMath
update pika_cjson
2022-07-30 18:56:20 +08:00
pikastech
1d7bcf2a39
use __getitem__ __setitem__ instead of __get__ __set__
2022-07-29 23:40:16 +08:00
pikastech
de10086338
add arg_new<T> api
...
update version
2022-07-20 10:34:50 +08:00
pikastech
15c0985d2e
add lseek() function
...
support readline(), readlines(), writelines() for FILEIO
2022-07-18 15:23:35 +08:00
李昂
d9349b7812
!61 Support seek() and tell() for FILEIO
...
* fix FILEIO.seek()
* return ftell in FILEIO.seek()
* fix test
* support seek() and tell() for FILEIO
2022-07-18 05:29:43 +00:00
pikastech
f019b5ca79
hex(0) return '0x00'
2022-07-15 10:47:24 +08:00
李昂
45a07c5773
!58 Support read() builtin
...
* support read(-1)
* add example
2022-07-15 02:06:23 +00:00
李昂
e7e501ab73
!56 Support tuple literal
...
* Merge branch 'master' into tuple
* sue SyntaxItemList
* cut the parser
* update preCompiler
* not use tiny_obj in stdlib
* use BUILTIN_STRUCT_ENABLE for list, dict, tuple
* add PikaStdData.Tuple()
* !51 Support bind .pyi from other *.py expect main.py
* fix overflow issue
* fix overflow issue and simplification code
* update PikaCV_Image.c.
2022-07-14 08:36:02 +00:00
pikastech
8f9950d4ae
support decode() and encode()
...
for PikaStdData.String() and PikaStdData.ByteArray()
use example/BuiltIn/encode_decode.py
fix CI
2022-07-14 12:02:38 +08:00
pikastech
8889671586
push binascii to package
2022-07-14 10:59:51 +08:00
pikastech
0921ee69c4
simplify the byteCodeGen main.c
2022-07-11 23:17:25 +08:00
李昂
660a97110f
!47 not use suger to parse slice
...
* use __vm_[get/slice] for sysobj
* not use suger in slice
* parser for new slice is ok
* add SLC ins
2022-07-11 06:42:12 +00:00
李昂
76db2494a5
!46 try to support [][], not ok yeat
...
* fix typo in test
* Merge branch 'master' into slice
* adding slice to parser from suger
2022-07-11 03:14:14 +00:00
lyon
41b6409be3
support b2a_hex() for PikaStdData.Utils
2022-07-06 16:20:12 +08:00
lyon
1bd3b367f4
fix str(None) return other string
2022-07-06 15:13:23 +08:00
李昂
4a943b479c
!41 Support chain invoke like < String('test').split() >
...
* support chain invoke ok
* add test for S(S.replace()).replace()
* parse to RUN .split
* try to support chain invoke, not ok
* can devide a chain
2022-07-05 06:23:49 +00:00
李昂
81a5f0b965
!40 support configparser_read_string
...
* configparser read_string is ok
* support replace() and strip() for StdData.String()
* add file and test of configparser
2022-07-04 07:16:44 +00:00