810 Commits

Author SHA1 Message Date
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
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
3a7796251f support range(a), range(a, b, step) 2022-09-12 20:01:30 +08:00
pikastech
2884d51c72 support for k, v in d.items() 2022-09-11 12:12:22 +08:00
pikastech
7f193cec04 support dict.items() 2022-09-11 00:51:17 +08:00
pikastech
c70947aa6e cut VM for nano mode 2022-09-10 23:16:59 +08:00
pikastech
779f94c529 fix DEL $tmp 2022-09-09 16:30:23 +08:00
pikastech
8143c1376e support multy return in function 2022-09-09 16:14:27 +08:00
pikastech
b48d04df3b support return dict in cmodule, release v1.10.8 2022-09-09 13:10:20 +08:00
pikastech
c0148c2bd3 skip void line 2022-09-09 10:18:55 +08:00
pikastech
7ae95663f6 support multy assign, use $l[x] instead of _l[x] 2022-09-09 10:16:15 +08:00
pikastech
8734548a37 fix valgrind for PikaNN 2022-09-08 22:48:00 +08:00
pikastech
e85639a1e9 fix valgrind in check CLS
add pikann
2022-09-08 22:33:23 +08:00
pikastech
87a084b4d8 support super(), test ok
support `super()`
2022-09-08 19:07:21 +08:00
pikastech
f216ee1f23 valgrind not pass in PikaNN 2022-09-08 08:43:15 +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
27ebfb049f support input None to object 2022-09-07 14:25:25 +08:00
pikastech
ad22498992 rm files
fix include cmake
2022-09-06 21:13:13 +08:00
任祉涵
36b3d2775a
PikaNN simple version (#211)
* PikaNN sample

* Delete __asset_lib_to_file_py_a.c

* Update CMakeLists.txt

Co-authored-by: Lyon <88232613+pikasTech@users.noreply.github.com>
2022-09-06 21:08:10 +08:00
pikastech
9cb3f586d5 fix PIKA_STRING_UTF8_EANBLE = 0 2022-09-06 08:19:05 +08:00
pikastech
d5ab75af41 fix some wars, fix mem leak, add unit test 2022-09-05 22:30:28 +08:00
pikastech
af26aace9d use method from str and bytes directly 2022-09-05 20:40:19 +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
b298e152e5 support __contain__
support __contains__ for list
2022-09-05 15:21:49 +08:00
pikastech
8cc02d15cd fix ci 2022-09-04 21:52:17 +08:00
pikastech
6257ab7f06 fix print sort 2022-09-04 21:19:41 +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
pikastech
d85fed9260 add default arg in example 2022-09-03 10:15:31 +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
pikastech
854bd2a6a4 skip when default is given 2022-09-02 20:21:58 +08: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
4827c6d031 add example function.py 2022-09-02 09:22:39 +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
pikastech
a2bbc06a39 fix ci 2022-08-31 00:44:45 +08:00
pikastech
1c9a4c8b5c def foo(**keys) in py is ok 2022-08-31 00:38:51 +08:00
pikastech
3b9f0112ed __kwargs is ok 2022-08-31 00:15:23 +08:00
pikastech
c8137e8204 fix ci 2022-08-30 16:05:44 +08: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
2dd8b6979d add get/set arg_serialized
add setIsKeyword

support keyword input
2022-08-30 12:25:57 +08:00
pikastech
e98c6b4e13 restore befor OUT 2022-08-30 12:05:28 +08:00
pikastech
e19d44cc92 befor pull 2022-08-30 11:59:17 +08:00
pikastech
abe576d9e5 OUT for keyword pars is ok 2022-08-30 11:58:13 +08:00
pikastech
d890d51f94 fix s = '\\' 2022-08-29 18:34:20 +08:00