600 Commits

Author SHA1 Message Date
blueloveTH
3ebc19bf7f fix warnings 2024-03-17 17:53:55 +08:00
blueloveTH
2b43cbd25c some optimize 2024-03-17 17:48:57 +08:00
Anurag Bhat
2ab819a724
Modify string constructor to allow no arguments (#226)
* Modify String Constructor

* Add check to restrict arguments
2024-03-13 00:55:54 +08:00
blueloveTH
1caa9e71c3 fix https://github.com/pocketpy/pocketpy/issues/213 2024-03-04 17:27:13 +08:00
blueloveTH
d4cf8b8c03 Update 01_int.py 2024-03-04 17:07:32 +08:00
blueloveTH
f95bdd45ac fix https://github.com/pocketpy/pocketpy/issues/223 2024-03-04 17:03:58 +08:00
blueloveTH
7f7e1a14ee raise error on literal ints overflow 2024-03-04 16:48:47 +08:00
Anurag Bhat
883f4d9532
Add Division operation for complex number in Cmath (#220)
* Add __truediv__() for cmath

* Some changes

* Remove separate zero division case checks

* Test all binary operators

* Use is_close
2024-03-02 14:34:05 +08:00
Anurag Bhat
5100f4e454
Floating inputs for round() should return a Floating output when ndigit is 0 (#217)
* Fix round for floating inputs

* Refactor integer inputs

* some fix

---------

Co-authored-by: blueloveTH <blueloveth@foxmail.com>
2024-02-27 11:18:21 +08:00
blueloveTH
214395fab6 fix https://github.com/pocketpy/pocketpy/issues/214 2024-02-26 10:40:37 +08:00
blueloveTH
4af7d5c873 fix https://github.com/pocketpy/pocketpy/issues/212 2024-02-23 15:48:24 +08:00
blueloveTH
0599130c0d fix https://github.com/pocketpy/pocketpy/issues/211 2024-02-23 01:27:48 +08:00
blueloveTH
3534492bb6 improve array2d.__setitem__ 2024-02-20 01:56:10 +08:00
blueloveTH
15a11d0c02 Update 80_linalg.py 2024-02-18 23:49:41 +08:00
blueloveTH
7d38f83008 fix a bug 2024-02-18 00:57:56 +08:00
blueloveTH
1558e5b40f fix a bug 2024-02-18 00:44:57 +08:00
blueloveTH
c3b050c77a fix a bug of line_profiler 2024-02-17 22:32:30 +08:00
blueloveTH
0df619b66f str.index and str.find supports __start 2024-02-17 20:45:08 +08:00
blueloveTH
96d9e12cd6 list.index supports __start 2024-02-17 20:36:20 +08:00
blueloveTH
020af4aa38 Update 83_array2d.py 2024-02-17 13:42:36 +08:00
blueloveTH
504d9cf79b add some algorithm into array2d 2024-02-16 19:52:52 +08:00
blueloveTH
e5097f734f Update 70_random.py 2024-02-15 00:21:51 +08:00
blueloveTH
7095db428c add random.choices 2024-02-15 00:13:34 +08:00
blueloveTH
b9d29dd4da add copy_*_ 2024-02-13 13:42:44 +08:00
blueloveTH
a0a5753283 allows vec * vec 2024-02-13 13:13:22 +08:00
blueloveTH
0bbf6af3ff update array2d.copy_ 2024-02-07 14:57:09 +08:00
blueloveTH
f2ce3c97d7 add line_profiler impl 2024-02-07 13:56:29 +08:00
blueloveTH
209b7f6831 add boilerplate for line_profiler 2024-02-07 10:50:53 +08:00
blueloveTH
a1797869db some update 2024-02-07 00:18:09 +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
cc076bbc00 fix cases 2024-02-05 15:57:36 +08:00
blueloveTH
c154d40da6 add more cases 2024-02-05 15:54:39 +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
b65cf89d22 fix https://github.com/pocketpy/pocketpy/issues/171 2024-02-04 19:30:51 +08:00
blueloveTH
d9c3f6c146 random refactor 2024-01-25 00:48:46 +08:00
blueloveTH
de41c27cfa TypeError: unsupported operand type(s) for +: 'NoneType' and 'int' 2024-01-21 01:38:21 +08:00
blueloveTH
4faed9dbf0 some docs update
Update 99_builtin_func.py
Delete re.md
2024-01-20 23:40:32 +08:00
blueloveTH
1404b97416 remove test module timeit 2024-01-20 23:29:57 +08:00
blueloveTH
50ab1f81d4 add os test prompt in test case 2024-01-20 22:39:32 +08:00
blueloveTH
c912f665f7 update test cases
...

...
2024-01-19 22:41:20 +08:00
blueloveTH
9b10a574b3 refactor linalg 2024-01-19 22:25:20 +08:00
blueloveTH
88c0102e79 fix https://github.com/blueloveTH/pocketpy/issues/192 2024-01-19 20:31:12 +08:00
blueloveTH
8d3bb6faa5 ... 2024-01-19 19:13:10 +08:00
blueloveTH
1e77f369a2 ... 2024-01-19 14:27:13 +08:00
blueloveTH
ec75972d92 some cleanup 2024-01-19 13:26:51 +08:00
blueloveTH
af58396b04 ... 2024-01-17 15:41:39 +08:00
blueloveTH
6455d40900 ... 2024-01-17 15:29:35 +08:00