478 Commits

Author SHA1 Message Date
blueloveTH
f650f159b4 ... 2023-12-30 14:33:04 +08:00
blueloveTH
1e178caf6e add cmath module 2023-12-30 13:57:51 +08:00
blueloveTH
475bce9999 add @dataclass 2023-12-21 23:09:23 +08:00
blueloveTH
0419eb5bb0 temp fix a bug of f"{stack[2:]}" 2023-12-19 20:21:17 +08:00
blueloveTH
b23eb63aad fix kwargs bug 2023-12-19 14:06:20 +08:00
blueloveTH
a28afb60be fix a parser bug 2023-12-18 20:29:12 +08:00
blueloveTH
ec0290ab39 ... 2023-12-04 18:11:45 +08:00
blueloveTH
f6942e0caf experimental support for try..except..as 2023-12-04 18:09:21 +08:00
BLUELOVETH
34f3ac32e7
Merge pull request #181 from blueloveTH/support-an-alt-float-literal-form
Support an alternative float literal form
2023-12-02 18:36:04 +08:00
blueloveTH
e99e5ff768 Update 80_linalg.py 2023-12-02 17:35:54 +08:00
blueloveTH
728f164d8a add impl 2023-12-02 12:35:53 +08:00
blueloveTH
74e31b36ed allow complex assignment in class definition 2023-11-30 17:53:11 +08:00
blueloveTH
101cf24a36 csv support linebreaks 2023-11-29 11:10:37 +08:00
BLUELOVETH
cb51cc95b6
Update 80_csv.py 2023-11-29 09:52:58 +08:00
blueloveTH
f2e6004c1e add csv.DictReader 2023-11-29 00:51:02 +08:00
blueloveTH
a62943568f add csv module 2023-11-28 22:40:37 +08:00
blueloveTH
7b9c7d926d rename easing functions 2023-11-27 16:06:52 +08:00
blueloveTH
2698040f52 improve f-string 2023-11-22 06:16:05 +08:00
blueloveTH
e124f635c1 support @property.setter 2023-11-07 04:50:06 +08:00
blueloveTH
a7448b7fa0 make json.loads accept bytes 2023-10-31 21:34:30 +08:00
blueloveTH
2f3017ebfd ... 2023-10-31 00:28:36 +08:00
blueloveTH
49f70318d9 ... 2023-10-29 22:44:14 +08:00
blueloveTH
f2d5fbbb94 add module operator and add split for single char 2023-10-29 22:16:49 +08:00
blueloveTH
a12eb4c8bc ... 2023-10-28 15:00:53 +08:00
S Mahmudul Hasan
c82bfb5455
Implement deque in C++ as required by #139 (#155)
* Initial integration of deque in collections

* some fix

* WIP: Implemented a int-only deque with limited capabilities

* WIP: added some more functionality -> changed int to arbitrary objects

* WIP: Added more functionalities in deque

* WIP: switched to std::deque

* WIP: added more functionalities

* WIP: minor fix

* WIP: added constructor

* WIP: added deque iterator

* WIP: added more functionalities

* Cleaned up and added more functionalities

* minor fix, std::min

* minor fix, rotate, n=0 case

* fix `collections` module

* support pickle

* refactored collections module

* Added some tests, more to follow

* Fixed the tests, more to follow

* Fixed some functionalities and added more tests

* added more tests, called __init__ from pickle, added reverse iterator option

* added the tests

* dropped support for __init__ for now

* moved deque iterator to collections.cpp

* undo unnecessary changes

* Cleaned up and added __str__() support

---------

Co-authored-by: blueloveTH <blueloveTH@foxmail.com>
2023-10-21 07:47:11 +08:00
blueloveTH
541ad57d97 ... 2023-10-16 00:15:45 +08:00
blueloveTH
f66c031fa9 Update 80_json.py 2023-10-15 22:39:10 +08:00
blueloveTH
020bd7bd26 ... 2023-10-15 22:34:43 +08:00
blueloveTH
f41368afbb ... 2023-10-15 22:08:41 +08:00
blueloveTH
5e3572b32c replace std::stringstream with SStream 2023-10-15 21:58:33 +08:00
blueloveTH
e4b6d566a7 add SStream 2023-10-15 21:36:30 +08:00
blueloveTH
cdcdded9a3 some fix 2023-10-15 16:47:53 +08:00
blueloveTH
3c6e4b4e76 ... 2023-10-15 15:15:44 +08:00
blueloveTH
227e76e3e4 cjson cleanup 2023-10-15 15:00:25 +08:00
Mahbub Alam
2950d88545
Add cjson module (#151)
* Add cjson module

* Create structure for cjson module

* Implemenet loads function

* Convert cJsonBool to python boolean

* Implement dumps function

* Convert json bool and null to python Bool and None

* necessary changes of project structure

* Update amalgamate.py

* Support non-dictionary json objects (list, tuple, string, number, bool, null)

* Fix tests

* fix CI

* fix CI

* Convert python to cJson and then to string

* Delete cJSON object after use

---------

Co-authored-by: Mahbub Alam <alam.mahbub214@gmail.com>
Co-authored-by: blueloveTH <blueloveth@foxmail.com>
2023-10-15 13:32:20 +08:00
blueloveTH
7cb0959922 fix a unittest error 2023-10-14 15:29:30 +08:00
blueloveTH
0157025097 disable code serialization impl 2023-10-14 15:25:07 +08:00
blueloveTH
5ecd59f11c ... 2023-10-13 13:12:05 +08:00
blueloveTH
92e4416c4e some refactor 2023-10-13 12:46:41 +08:00
blueloveTH
9f3d15ca51 ... 2023-10-13 12:18:33 +08:00
blueloveTH
38c0eb6bea ... 2023-10-12 22:17:26 +08:00
blueloveTH
eb5be9ba41 import can be used in local scope now 2023-10-12 01:02:46 +08:00
blueloveTH
3a3b97c070 improve exec/eval 2023-10-12 00:44:53 +08:00
BLUELOVETH
f837ace29c
Merge pull request #162 from MSaiKiran9/datetime-file
Datetime file update
2023-10-11 16:12:07 +08:00
blueloveTH
b26dbf08cc improve number parsing speed 2023-10-11 14:37:43 +08:00
blueloveTH
7c3ac48202 enable LTO 2023-10-11 13:20:48 +08:00
BLUELOVETH
df4e0e329a
Merge pull request #154 from stautonico/main
Added support for octal and binary literals
2023-10-11 13:06:08 +08:00
M Sai Kiran
9a30f4d5b5 revised-changes 2023-10-09 20:27:21 +05:30
blueloveTH
6dad2d612e ... 2023-10-09 00:03:23 +08:00
blueloveTH
0caa14172d fix ++ for global names 2023-10-08 20:55:31 +08:00