54 Commits

Author SHA1 Message Date
BLUELOVETH
981e6e6e88 support abs() for complex objects 2024-07-21 08:29:53 +00:00
blueloveTH
237fd57b66 some optimize 2024-04-20 11:47:50 +08:00
blueloveTH
c4b3d2bb5f refactor 2024-04-16 23:31:12 +08:00
blueloveTH
c77fef35a2 refactor defaultdict 2024-03-28 19:21:56 +08:00
albertexye
142e4fd45f
Sort names returned by the built-in dir method (#231)
* Sort names returned by the built-in dir method

* some fix

---------

Co-authored-by: blueloveTH <blueloveth@foxmail.com>
2024-03-27 16:07:35 +08:00
blueloveTH
5e01164dac move some methods to header file 2024-03-02 04:06:29 +08:00
blueloveTH
93bea3dcd5 decrease str inline size 2024-02-19 00:10:40 +08:00
blueloveTH
97c923e514 use pod_vector for small vectors 2024-02-18 17:51:35 +08:00
blueloveTH
80dfd83f51 fix minor compile errors 2024-02-13 22:55:19 +08:00
blueloveTH
faa01ac82e fix a bug of hex 2024-02-05 15:50:13 +08:00
blueloveTH
fba9d87ccd add cases 2024-02-05 15:29:23 +08:00
blueloveTH
8f11ce0466 move strip methods into cpp 2024-02-05 14:48:00 +08:00
blueloveTH
1a9e9dc752 change source to std::string_view 2024-02-01 13:28:16 +08:00
blueloveTH
7a5ec84d14 fix https://github.com/pocketpy/pocketpy/issues/195 2024-02-01 11:57:18 +08:00
blueloveTH
5ffb446d4a fix https://github.com/pocketpy/pocketpy/issues/194 2024-01-26 12:07:33 +08:00
blueloveTH
d97b24f5cb fix size_t compiler error 2024-01-20 22:44:32 +08:00
blueloveTH
5dab337485 Update test_answers.txt 2024-01-20 22:35:05 +08:00
blueloveTH
0af2855ce5 replace format use of std::stringstream with sprintf 2024-01-20 22:27:32 +08:00
blueloveTH
d8d25894c7 ... 2024-01-15 14:40:24 +08:00
blueloveTH
315cbe5d1a rename FATAL_ERROR to PK_FATAL_ERROR 2024-01-04 12:37:28 +08:00
blueloveTH
c6ec028730 support real exceptions 2024-01-02 16:42:08 +08:00
blueloveTH
1e178caf6e add cmath module 2023-12-30 13:57:51 +08:00
blueloveTH
9af3434f06 improve f-string performance 2023-12-08 22:29:22 +08:00
blueloveTH
9e66bab34b fix https://github.com/blueloveTH/pocketpy/issues/179 2023-12-01 10:42:42 +08:00
blueloveTH
27f8d6be28 some refactor 2023-11-09 15:46:49 +08:00
blueloveTH
f2d5fbbb94 add module operator and add split for single char 2023-10-29 22:16:49 +08:00
blueloveTH
e8b1449979 ... 2023-10-16 00:08:26 +08:00
blueloveTH
020bd7bd26 ... 2023-10-15 22:34:43 +08:00
blueloveTH
57e1ec1637 ... 2023-10-15 22:25:04 +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
9f3d15ca51 ... 2023-10-13 12:18:33 +08:00
blueloveTH
979b7f4a67 ... 2023-09-27 10:28:39 +08:00
blueloveTH
778a70e90f ... 2023-09-27 07:46:25 +08:00
blueloveTH
60e666c12e fix https://github.com/blueloveTH/pocketpy/issues/131 2023-09-18 00:23:37 +08:00
blueloveTH
88c80a2340 ... 2023-08-29 23:57:33 +08:00
BLUELOVETH
5888151182 ... 2023-08-28 12:04:53 +08:00
blueloveTH
0c80a626ba refactor importer 2023-08-28 04:05:24 +08:00
blueloveTH
eac3230a71 ... 2023-08-28 00:39:21 +08:00
blueloveTH
e21005e5d2 add Str::split 2023-08-28 00:34:13 +08:00
blueloveTH
f16f98fcf8 ... 2023-08-05 15:44:23 +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
604ca77e48 fix https://github.com/blueloveTH/pocketpy/issues/121 2023-07-29 22:18:39 +08:00
BLUELOVETH
9c18f48264 fix a potential bug of str initialization order 2023-07-26 14:23:19 +08:00
blueloveTH
63b05cf07c Revert "..."
This reverts commit b4169a34a939ee82a34aad5953ae31941a30dae1.
2023-07-20 22:58:07 +08:00
blueloveTH
b4169a34a9 ... 2023-07-20 22:52:10 +08:00
blueloveTH
f669239f8d ... 2023-07-20 22:36:10 +08:00
BLUELOVETH
864345ccc3 ... 2023-07-19 15:50:23 +08:00