158 Commits

Author SHA1 Message Date
blueloveTH
c954431442 some fix 2024-07-01 01:42:08 +08:00
blueloveTH
36b3c9ff8f some fix 2024-07-01 01:28:18 +08:00
blueloveTH
5847586121 some fix 2024-07-01 00:57:14 +08:00
blueloveTH
52b210b016 some fix 2024-07-01 00:21:03 +08:00
blueloveTH
25ceed2703 backup 2024-06-30 22:44:51 +08:00
blueloveTH
391d26cdc5 some fix 2024-06-30 15:26:39 +08:00
blueloveTH
68e8536c89 some fix 2024-06-30 14:34:23 +08:00
blueloveTH
a6b3163635 some fix 2024-06-30 14:27:13 +08:00
blueloveTH
4860c08e03 some test 2024-06-30 14:10:17 +08:00
blueloveTH
cde78ea481 some up 2024-06-30 02:38:38 +08:00
blueloveTH
5be3300554 fix initial demo 2024-06-29 21:14:11 +08:00
blueloveTH
f53ae5e459 some fix 2024-06-29 19:44:38 +08:00
blueloveTH
455aa576e5 some fix 2024-06-29 19:35:11 +08:00
blueloveTH
4a5f74b2d2 some move 2024-06-29 18:54:05 +08:00
blueloveTH
a55d3a5340 global replace 2024-06-29 18:34:38 +08:00
blueloveTH
31fa85f22e some fix 2024-06-26 16:39:17 +08:00
blueloveTH
57563d4e40 some rename 2024-06-26 13:40:53 +08:00
blueloveTH
6956631c61 some fix 2024-06-26 13:35:28 +08:00
blueloveTH
16f1d3fcfb some fix 2024-06-26 13:24:02 +08:00
blueloveTH
b20246b172 some fix 2024-06-26 13:20:57 +08:00
blueloveTH
cff541b94b some fix 2024-06-26 13:17:29 +08:00
blueloveTH
d44781fa1e some fix 2024-06-26 13:12:30 +08:00
blueloveTH
ae002a6c17 Update pocketpy.h 2024-06-26 13:08:14 +08:00
blueloveTH
11ea812897 some fix 2024-06-26 12:52:55 +08:00
blueloveTH
73bca886b5 some fix 2024-06-26 11:28:38 +08:00
blueloveTH
7e35fa2d56 some fix 2024-06-26 03:23:46 +08:00
blueloveTH
fb0ec57f38 up 2024-06-26 02:50:02 +08:00
blueloveTH
2ac2ff807f up 2024-06-26 02:36:14 +08:00
blueloveTH
6f99ebed88 rename py_Type 2024-06-26 01:03:53 +08:00
blueloveTH
5bdbec273e some tidy 2024-06-26 01:02:45 +08:00
blueloveTH
0871b627ed up 2024-06-25 19:32:15 +08:00
blueloveTH
2a84911862 up 2024-06-25 14:44:18 +08:00
blueloveTH
bb67505613 up 2024-06-25 14:16:58 +08:00
blueloveTH
efd98e6a6a up 2024-06-25 04:29:53 +08:00
blueloveTH
d3d296b353 some up 2024-06-24 21:01:30 +08:00
blueloveTH
c89c7bd1ac some fix 2024-06-24 20:14:40 +08:00
blueloveTH
19ed0fdaf5 remove *.cpp 2024-06-24 00:06:31 +08:00
blueloveTH
2dfb6ed07a major refactor 2024-06-02 16:53:51 +08:00
blueloveTH
2f96712371 refactor deque 2024-06-01 21:47:27 +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
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
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
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
014902b4bb open default mode is 'r' 2023-08-02 23:16:21 +08:00
blueloveTH
604ca77e48 fix https://github.com/blueloveTH/pocketpy/issues/121 2023-07-29 22:18:39 +08:00