148 Commits

Author SHA1 Message Date
blueloveTH
49f70318d9 ... 2023-10-29 22:44:14 +08:00
blueloveTH
61f837ac2c doc fix 2023-10-29 22:22:22 +08:00
blueloveTH
f2d5fbbb94 add module operator and add split for single char 2023-10-29 22:16:49 +08:00
blueloveTH
04df1dbe5b fix https://github.com/blueloveTH/pocketpy/issues/172 2023-10-28 15:10:58 +08:00
blueloveTH
a12eb4c8bc ... 2023-10-28 15:00:53 +08:00
blueloveTH
a98e710fe7 delete old deque 2023-10-21 08:06:00 +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
4cd84bbada ... 2023-10-12 12:50:57 +08:00
blueloveTH
dcfed8f7b7 ... 2023-10-11 16:11:50 +08:00
M Sai Kiran
36ce3951c6 rev2 2023-10-09 21:01:18 +05:30
M Sai Kiran
9a30f4d5b5 revised-changes 2023-10-09 20:27:21 +05:30
M Sai Kiran
1ad67650ac
Merge branch 'blueloveTH:main' into datetime-file 2023-10-08 12:10:45 +05:30
M Sai Kiran
2fc835232b
datetime-upt1 2023-10-07 11:07:25 +05:30
blueloveTH
098b85f89b ... 2023-10-07 11:55:57 +08:00
S. Mahmudul Hasan
151e9467ae fixed the error case for escaped curly braces, and converted the tokenize function into a inner function 2023-10-06 16:56:19 -04:00
S. Mahmudul Hasan
ee54816421 Updated str.format to tokenization-based-replacement operation 2023-10-05 20:04:21 -04:00
S. Mahmudul Hasan
0fef360caf Added better string formatting as required by Issue#138 2023-10-03 13:45:21 -04:00
blueloveTH
6062e34a29 ... 2023-09-29 18:43:59 +08:00
blueloveTH
979b7f4a67 ... 2023-09-27 10:28:39 +08:00
blueloveTH
5a42d35f9d ... 2023-09-27 06:45:18 +08:00
blueloveTH
6f19f8e3fa add decorators for typing 2023-09-26 21:45:31 +08:00
blueloveTH
095acf4483 add TYPE_CHECKING 2023-09-24 21:40:11 +08:00
blueloveTH
2c68dd63a5 ... 2023-09-24 13:59:48 +08:00
BLUELOVETH
c8d581cfe7 move __repr__ of list and tuple into cpp 2023-09-20 10:33:22 +08:00
blueloveTH
b27afe20ce ... 2023-09-17 21:21:37 +08:00
blueloveTH
8ec3bb0b5d support generics 2023-09-17 21:18:45 +08:00
blueloveTH
2b031e61a2 ... 2023-09-17 21:17:02 +08:00
blueloveTH
e107531862 ... 2023-09-17 19:59:36 +08:00
blueloveTH
aaa6d60404 add __module__ for types and fix pickle bugs 2023-09-10 03:22:01 +08:00
blueloveTH
45bafb7534 ... 2023-09-10 00:43:46 +08:00
BLUELOVETH
8271eb79c2 fix format problem 2023-09-07 10:12:35 +08:00
blueloveTH
c5858b95db ... 2023-09-06 23:44:18 +08:00
blueloveTH
a23d100265 ... 2023-09-04 21:38:48 +08:00
blueloveTH
368f228173 add typing module 2023-09-04 21:29:13 +08:00
blueloveTH
88c80a2340 ... 2023-08-29 23:57:33 +08:00
blueloveTH
81f43ab09b ... 2023-08-02 23:37:57 +08:00
blueloveTH
7741d592da reimpl round in cpp 2023-08-02 23:29:13 +08:00
BLUELOVETH
f0ca29a30a some important changes
1. add `colorsys`
2. handle `__all__` in modules
3. `is_pod` for c++17/20
2023-08-02 13:04:39 +08:00
blueloveTH
3c64f59fd3 remove requests 2023-07-01 01:58:53 +08:00
blueloveTH
b13581037d ... 2023-07-01 00:33:34 +08:00
blueloveTH
718edd9b9d ... 2023-06-25 17:50:23 +08:00
blueloveTH
f404724aaf ... 2023-06-25 17:25:09 +08:00
blueloveTH
de7c1dc94b ... 2023-06-25 16:08:10 +08:00
blueloveTH
2fddde4f9c ... 2023-06-25 03:01:16 +08:00
blueloveTH
715c8670d1 ... 2023-06-16 21:35:28 +08:00
blueloveTH
94bdfaa949 ... 2023-06-16 01:27:32 +08:00
blueloveTH
ba248ae0f3 ... 2023-06-15 21:34:01 +08:00
blueloveTH
21c23245b2 ... 2023-06-15 20:25:04 +08:00
blueloveTH
e32ed25748 Revert "..."
This reverts commit 611a4282aa83997714c5bf981999d8337017efee.
2023-06-15 19:47:36 +08:00
blueloveTH
611a4282aa ... 2023-06-15 19:42:23 +08:00