793 Commits

Author SHA1 Message Date
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
pikastech
8404d5a305 support '//' transfer to '/' 2022-08-29 18:09:45 +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
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
d897af834c Merge branch 'master' of https://github.com/pikastech/pikascript 2022-08-24 13:08:18 +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
1c0f6b50b1 support science_num 2022-08-18 22:44:03 +08:00
pikastech
e194106ce8 add callback/test
fix test

add callback-test1

add assert
2022-08-18 14:22:43 +08:00
pikastech
5354708450 use hash instead of itoa in list and queue 2022-08-17 10:29:54 +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
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
699a0feefd fix ci 2022-08-11 19:32:50 +08:00
pikastech
cd6dfbbb71 unittest can run 2022-08-11 19:21:53 +08:00