104 Commits

Author SHA1 Message Date
blueloveTH
a2e7846662 enable rtti 2024-02-29 10:57:15 +08:00
blueloveTH
0599130c0d fix https://github.com/pocketpy/pocketpy/issues/211 2024-02-23 01:27:48 +08:00
blueloveTH
c3b050c77a fix a bug of line_profiler 2024-02-17 22:32:30 +08:00
blueloveTH
8a2ee65301 refactor 2 2024-02-07 11:47:41 +08:00
blueloveTH
b0dc1e4a69 refactor 2024-02-07 11:40:21 +08:00
blueloveTH
209b7f6831 add boilerplate for line_profiler 2024-02-07 10:50:53 +08:00
blueloveTH
dcb784a7a8 add array2d module 2024-02-06 23:25:40 +08:00
blueloveTH
2c8a8732f0 fix docs with pocketpy 2024-02-05 16:15:00 +08:00
blueloveTH
7bd99279e5 fix https://github.com/pocketpy/pocketpy/issues/196 2024-02-04 17:53:31 +08:00
blueloveTH
d9c3f6c146 random refactor 2024-01-25 00:48:46 +08:00
blueloveTH
ec75972d92 some cleanup 2024-01-19 13:26:51 +08:00
blueloveTH
c6ec028730 support real exceptions 2024-01-02 16:42:08 +08:00
blueloveTH
641b9a9e27 some cleanup 2023-12-26 21:35:51 +08:00
blueloveTH
a62943568f add csv module 2023-11-28 22:40:37 +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
3f7435263a Update amalgamate.py 2023-10-15 16:57:56 +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
e6b89a1206 fix box2d 2023-10-01 22:54:08 +08:00
BLUELOVETH
0644c403ee ... 2023-08-03 12:53:10 +08:00
blueloveTH
b0361b801a Revert "..."
This reverts commit d9b83fbeb70ed75079a538b77887269ed0cb58ef.
2023-07-22 22:44:27 +08:00
blueloveTH
d9b83fbeb7 ...
...
2023-07-22 22:44:23 +08:00
BLUELOVETH
0ee5c5add6 ... 2023-07-14 17:37:26 +08:00
blueloveTH
85a9588459 ... 2023-07-09 16:10:15 +08:00
blueloveTH
e6c5ace927 ... 2023-07-09 03:02:10 +08:00
blueloveTH
0e736b2f71 ... 2023-07-09 01:11:43 +08:00
blueloveTH
a06a8918ce ... 2023-07-09 00:55:30 +08:00
blueloveTH
53d272ce2f ... 2023-07-08 19:43:17 +08:00
BLUELOVETH
549ed0c5f1 ... 2023-07-07 16:54:34 +08:00
blueloveTH
656d1d7291 ... 2023-07-02 03:52:44 +08:00
blueloveTH
f3ac21ccc2 ... 2023-07-02 01:39:24 +08:00
blueloveTH
3c64f59fd3 remove requests 2023-07-01 01:58:53 +08:00
blueloveTH
af95fa24e0 ... 2023-06-24 02:59:50 +08:00
blueloveTH
d23401f77b ... 2023-06-11 21:16:13 +08:00
blueloveTH
28c8f68d8d add config.h 2023-06-11 13:57:07 +08:00
blueloveTH
7669c67c38 ... 2023-06-10 13:16:35 +08:00
blueloveTH
fa94d49a2a Update amalgamate.py 2023-05-24 22:15:41 +08:00
blueloveTH
245c9a94eb Update amalgamate.py 2023-05-24 21:53:35 +08:00
blueloveTH
92007dc614 Update amalgamate.py 2023-05-24 19:13:02 +08:00
blueloveTH
795d34dc49 Update amalgamate.py 2023-05-24 19:11:43 +08:00
blueloveTH
446438c2bc ... 2023-05-24 19:09:08 +08:00
blueloveTH
3b66008e50 ... 2023-05-24 19:01:47 +08:00
blueloveTH
ef21ff266b ... 2023-05-24 17:59:08 +08:00
blueloveTH
65101b4334 ... 2023-05-24 17:38:55 +08:00
blueloveTH
015c994c02 Update amalgamate.py 2023-05-21 14:35:36 +08:00
blueloveTH
994290f1ea ... 2023-05-20 18:56:57 +08:00
blueloveTH
3f9345fa00 Update amalgamate.py 2023-05-19 14:32:28 +08:00
blueloveTH
a2caa487ab ... 2023-05-13 20:32:15 +08:00
blueloveTH
44e14ec139 Update amalgamate.py 2023-05-12 14:40:28 +08:00
blueloveTH
9e72433cc7 ... 2023-05-12 14:30:39 +08:00
blueloveTH
94b70061b4 ... 2023-05-12 14:03:15 +08:00