533 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
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
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
b48d04df3b support return dict in cmodule, release v1.10.8 2022-09-09 13:10:20 +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
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
66c6b44177 update 2022-09-07 14:15:59 +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
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
af26aace9d use method from str and bytes directly 2022-09-05 20:40:19 +08:00
pikastech
a563f7947c add arg_newObj api 2022-09-05 17:43:17 +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
eb92e69fd8 fix memroy leak and arg num check err 2022-09-04 18:37:47 +08:00
pikastech
6c6e42e128 update re from package to port/linux 2022-09-04 17:50:08 +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
87da4d26d1 release v1.10.5, and readyto re 2022-08-29 18:57:10 +08:00
pikastech
8404d5a305 support '//' transfer to '/' 2022-08-29 18:09:45 +08:00
pikastech
cfbc2d98f9 fix cre.c:310:3: error: a label can only be part of a statement and a declaration is not a statement 2022-08-29 16:58:01 +08:00
pikastech
a0b14d80e2 update readme.md 2022-08-29 16:45:41 +08:00
pikastech
0e19a6a2b5 fix some mem leaks 2022-08-29 16:32:10 +08:00
pikastech
f76e456ea0 add test, examples for re, fix some mem leak 2022-08-29 16:29:03 +08:00
pikastech
004c0b45fc add more comments for sockets 2022-08-28 15:13:39 +08:00
pikastech
12bb6bf4a9 add check version MACRO 2022-08-27 14:55:08 +08:00
pikastech
f09ea25237 add version check for socket and stddevice 2022-08-26 20:05:20 +08:00
pikastech
5f75d370dd update stddevice 2022-08-26 19:41:25 +08:00
pikastech
3d97469e25 add platform_h for socket.c 2022-08-26 17:55:17 +08:00
pikastech
7244267b68 test socket ok 2022-08-26 17:25:45 +08:00
pikastech
ecaf7ed0e9 add __platform for socket, add override 2022-08-26 16:40:12 +08:00
pikastech
11088f6b4b rm -api
generate only one -api file
2022-08-25 11:23:56 +08:00
pikastech
2a4115722e create socket.py
support socket on linux
2022-08-25 00:54:27 +08:00
pikastech
ab32fd37ae fix stdlib.pyi macro 2022-08-24 13:26:06 +08:00
pikastech
34ad50ffe8 fix macro in stddevice 2022-08-24 13:18:38 +08:00
pikastech
04da2b93b6 supporting decorator to macro in pyi
update PikaObj.pyi

use @PIKA_C_MACRO_IF to cut sysobj
2022-08-24 13:01:11 +08:00
pikastech
7e15e5e202 support __add__() for list 2022-08-16 17:40:11 +08:00
pikastech
1152ed91de format stddata 2022-08-16 12:24:26 +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
76ce590713 fix typo 2022-08-14 23:58:24 +08:00
pikastech
8fff0950a0 add comments to PikaStdDevice 2022-08-14 23:55:24 +08:00