blueloveTH
8f11ce0466
move strip
methods into cpp
2024-02-05 14:48:00 +08:00
blueloveTH
f55c3d7206
remove dataclasses.py
2024-02-05 11:59:41 +08:00
blueloveTH
ce1bc278e3
add .date()
2024-01-25 17:49:20 +08:00
blueloveTH
d9c3f6c146
random refactor
2024-01-25 00:48:46 +08:00
blueloveTH
d64863fd43
some refactor
2024-01-19 20:02:23 +08:00
blueloveTH
7a65de16c0
...
2024-01-15 14:43:52 +08:00
blueloveTH
d8d25894c7
...
2024-01-15 14:40:24 +08:00
blueloveTH
7a386fa218
fix https://github.com/blueloveTH/pocketpy/issues/174
2024-01-14 14:19:31 +08:00
blueloveTH
98fe274dc8
add typing.Protocol
2024-01-06 13:38:51 +08:00
blueloveTH
c6ec028730
support real exceptions
2024-01-02 16:42:08 +08:00
blueloveTH
c79cd6dca6
...
2024-01-02 00:36:23 +08:00
blueloveTH
9d9ec9a6d0
add __neg__
for complex
2024-01-02 00:24:22 +08:00
blueloveTH
889cf99695
...
2023-12-30 20:58:52 +08:00
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
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
54b1ce3a3a
Update builtins.py
2023-11-29 13:58:45 +08:00
blueloveTH
2f3017ebfd
...
2023-10-31 00:28:36 +08:00
blueloveTH
4b00846861
Update datetime.py
2023-10-30 23:58:43 +08:00
blueloveTH
905defb534
fix a bug of datetime and localtime
2023-10-30 23:55:06 +08:00
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