238 Commits

Author SHA1 Message Date
pikastech
ddcc2f7242 opt for args_isArgExist 2022-10-06 13:35:52 +08:00
pikastech
f5efb11a75 optimize speed for string funs
optimize str sppeed

add prof.sh

not -pg in default
2022-10-06 12:44:40 +08:00
pikastech
1748e306d6 optimize speed for OPT 2022-10-05 21:09:13 +08:00
pikastech
e0aae36a1a reduce malloc 2022-10-05 20:36:00 +08:00
pikastech
060ac91f3d reduce alloc for stack push/pop 2022-10-05 01:04:37 +08:00
pikastech
6a9535470b support mod1 import mod2 import mod1 2022-10-02 16:29:48 +08:00
pikastech
d8698d5cac reduce ram usage of stack 2022-10-02 00:00:53 +08:00
pikastech
b21fd029ed optimize str slice, time speed recuse 95% 2022-09-29 20:41:57 +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
459da8ab5b support '__getattribute__()'
support `__getattr__()`

disable proxy for PIKA_NANO_ENABLE

fix typo

support `__setattr__()`

proxy for cmodule is ok
2022-09-23 16:34:14 +08:00
pikastech
52995e6ab2 support list.pop()
support list.remove()

support list.insert()
2022-09-23 12:38:04 +08:00
pikastech
729ce8a497 add test for WriteRegister 2022-09-19 14:38:12 +08:00
pikastech
abb557093a fix can not invoke inner super.method() 2022-09-19 14:31:41 +08:00
pikastech
f2e184aa81 support list(str) 2022-09-19 09:53:27 +08:00
pikastech
bb0631db1e fix parse for abc[a+1]*3 2022-09-19 00:44:03 +08:00
pikastech
295ff87e5d support 0xffffffff literal and print 2022-09-17 14:56:39 +08:00
pikastech
b4321d3a5c fix err when arg.type or arg.flag both u8 2022-09-16 14:27:10 +08:00
pikastech
d3026c7c99 support slice utf8 for str
add test for slice utf-8
2022-09-15 16:27:02 +08:00
pikastech
1019f3095f exit when error occord 2022-09-14 13:05:10 +08:00
pikastech
25bd3a9294 support def test(a:int64)-> int64: 2022-09-14 12:30:23 +08:00
pikastech
2884d51c72 support for k, v in d.items() 2022-09-11 12:12:22 +08:00
pikastech
b48d04df3b support return dict in cmodule, release v1.10.8 2022-09-09 13:10:20 +08:00
pikastech
7ae95663f6 support multy assign, use $l[x] instead of _l[x] 2022-09-09 10:16:15 +08:00
pikastech
87a084b4d8 support super(), test ok
support `super()`
2022-09-08 19:07:21 +08:00
pikastech
c59c8953b7 support method for str
support method for str
2022-09-05 20:29:13 +08:00
pikastech
4486de76e9 support list slice 2022-09-05 16:31:30 +08:00
pikastech
45c70ffe79 support __contains__ for dict 2022-09-05 15:39:15 +08:00
pikastech
9623c2f8f1 skip arg num check for factory method 2022-09-04 18:54:51 +08:00
pikastech
eb92e69fd8 fix memroy leak and arg num check err 2022-09-04 18:37:47 +08:00
李昂
0e1a2d3249 !110 support default pars for py function
* var_default_vars test ok
* default with input is ok
* use self.val in CallBack/test2.py
* vm ...
2022-09-02 16:16:31 +00:00
李昂
55801b28f5 !109 default
* add callback test
* def test(a=1, b='test') for default is ok
* getNodeAttr
2022-09-02 11:25:32 +00:00
pikastech
b928950106 fix declare typo, parsing defalut 2022-09-02 14:34:47 +08:00
pikastech
fd15dc96af support vars_keys and pos_vars_keys 2022-09-02 01:17:00 +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
d890d51f94 fix s = '\\' 2022-08-29 18:34:20 +08:00
pikastech
f76e456ea0 add test, examples for re, fix some mem leak 2022-08-29 16:29:03 +08:00
pikastech
6726169ad9 serilized to api
use mask in arg for serilized

support isKeyword flag for arg
2022-08-28 19:25:03 +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
a1b3347e5b support [\n ...] and {\n ...} 2022-08-13 00:08:21 +08:00
pikastech
7d01af7b90 support auto connect lines begin with fun(...
fix valgrind
2022-08-12 23:59:32 +08:00
pikastech
331710ace6 support void line and no new line 2022-08-12 13:52:51 +08:00
pikastech
cd6dfbbb71 unittest can run 2022-08-11 19:21:53 +08:00
pikastech
f180a15343 support %s and %r for any type arg 2022-08-11 18:32:53 +08:00
pikastech
e0eee73209 support dir() builtin, fix str disp in list... 2022-08-10 11:49:54 +08:00