pikastech
d5ab75af41
fix some wars, fix mem leak, add unit test
2022-09-05 22:30:28 +08:00
pikastech
d85fed9260
add default arg in example
2022-09-03 10:15:31 +08:00
pikastech
4827c6d031
add example function.py
2022-09-02 09:22:39 +08:00
pikastech
a1b3347e5b
support [\n ...] and {\n ...}
2022-08-13 00:08:21 +08:00
pikastech
57d89e256f
support try_expect for open
2022-08-06 17:59:32 +08:00
pikastech
fb1e4e7237
add bigfile test
2022-07-26 10:42:02 +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
554bd00302
write to test/out folder
2022-07-15 15:20:30 +08:00
李昂
45a07c5773
!58 Support read() builtin
...
* support read(-1)
* add example
2022-07-15 02:06:23 +00:00
pikastech
5b1534b0b2
add ctypes.py in example
2022-07-14 18:06:10 +08: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
李昂
7fafc7eee0
update examples/BuiltIn/type.py.
2022-06-30 08:15:08 +00:00
pikastech
944503cd23
support return val from type()
2022-06-30 16:10:38 +08:00
pikastech
847b9100cf
clean example/builtin
2022-06-30 14:24:00 +08:00
pikastech
1fb06d621a
add test for list inner dict
2022-06-30 13:18:59 +08:00
李昂
b669710c2c
!39 Support d = {'a':x, 'b':y, 'c':z}
...
* Support d = {'a':x, 'b':y, 'c':z}
* add parse and ins for dict literal
2022-06-30 04:10:03 +00:00
pikastech
3e371e9e57
fix a[1] = 1 not work inner function()
2022-06-24 16:08:27 +08:00
李昂
e6a33c058e
!34 Support __str__() for PikaStdData.List(),PikaStdData.Dict(),PikaStdData.dict_keys(),
...
* print list as '[x,x,x]'
* support __str__ for Dict
* support __str__ for dict_keys()
2022-06-24 03:30:56 +00:00
pikastech
ff16099da5
test iter() for keys is ok
2022-06-23 17:46:50 +08:00
李昂
6acc0f9ecd
!25 support format output for print()
...
* test for format with tuple is ok
* 'format'%var is ok (tuple var is not ok)
* rename _cformat to cformat()
* optimize the memory usage of format_list
* add string-test.cpp
* cformat() is ok
* fix variable par load issue
* use test_common.h
* use test_common to simplify the gtest case
* Merge branch 'master' into dev
* fix float->double for bytecodegen
* update to /package
* Use double in C for float in python
2022-06-14 03:20:17 +00:00