Commit Graph

1195 Commits

Author SHA1 Message Date
Windel Bouwman
e3344df00e Merge pull request #1289 from Lynskylate/add-super-str
Add __str__ __repr__ for super
2019-08-17 09:47:14 +02:00
Windel Bouwman
1f1a29cff2 Merge pull request #1288 from Writtic/module_ldexp
Update ldexp module of math
2019-08-16 20:50:05 +02:00
lynskylate
401ab2a399 Add str test 2019-08-17 01:41:09 +08:00
johan.park
c8d8acdcdf Fix TypeError issue
- Using python reference type instead of arg_check
- Add TypeError assertion on test case
- Add TypeError assertion of frexp method
2019-08-17 00:44:00 +09:00
johan.park
b38a280ea1 Update ldexp module of math 2019-08-16 23:03:55 +09:00
Windel Bouwman
4e256e3775 Merge pull request #1284 from Writtic/module_factorial
Update factorial module of math
2019-08-16 13:01:19 +02:00
Noah
c06928cc84 Merge pull request #1283 from corona10/imghdr
Implement FileIO.read with nbytes and importing modified imghdr.py
2019-08-16 03:42:11 -05:00
Noah
aa14a6bc48 Merge pull request #1273 from jmg7173/master
Add floating point formatting
2019-08-16 03:29:31 -05:00
Dong-hee Na
ade287a1e2 fix test_imghdr.py 2019-08-16 16:57:55 +09:00
Windel Bouwman
777b04a815 Merge pull request #1274 from ChJR/feature/int.__r-shift__
Add int.__(x)xshift__ methods.
2019-08-16 09:12:31 +02:00
Noah
cf09efb293 Merge pull request #1259 from pitachips/socket
add __enter__ and __exit__ for socket
2019-08-16 01:54:17 -05:00
ChJR
1dceae9205 Add str.__rmod__() method. #190 (#1262)
* Add str.__rmod__ method.

* Add tests for str.__rmod__ method.

* Improve test for str.__rmod__ method.

* Change str.__rmod__ method return value type.

* Format with rustfmt.

* Remove not required code of str.__rmod__ method.

* Improve with clippy.
2019-08-16 08:40:32 +02:00
MinGyo Jung
bc64016b02 Merge branch 'master' of https://github.com/rustpython/rustpython 2019-08-16 15:39:10 +09:00
Dong-hee Na
0c53d507f6 Modify imghdr.py and write unittest 2019-08-16 15:15:33 +09:00
Dong-hee Na
29dabbcbea Implement FileIO.read with nbytes 2019-08-16 15:08:05 +09:00
Hyunji Kim
8b8f542e23 add __enter__ and __exit__ for socket 2019-08-16 14:48:27 +09:00
johan.park
48ae9a309d Update factorial module of math
- Implement factorial function with test case
- Deal with Negative input as a ValueError
2019-08-16 14:28:35 +09:00
Dong-hee Na
5414d2ac33 fix codes 2019-08-16 09:58:46 +09:00
Dong-hee Na
850f479dd2 stdlib_io: Implement fileIO.close 2019-08-16 05:28:12 +09:00
Windel Bouwman
32634b2d53 Merge pull request #1080 from JimJeon/feature/round
Feature/round
2019-08-15 19:50:52 +02:00
Windel Bouwman
bbe2f72c04 Merge pull request #1268 from youknowone/subclasshook
object.__subclasshook__
2019-08-15 19:45:00 +02:00
Windel Bouwman
3b089020f6 Merge pull request #1276 from mpajkowski/functools_reduce
Add functools.reduce
2019-08-15 19:27:49 +02:00
Windel Bouwman
620a0c4518 Merge pull request #1265 from pbzweihander/iss1254-ellipsis-reduce
Add __reduce__ method to Ellipsis
2019-08-15 19:16:48 +02:00
Marcin Pajkowski
24b6cc1283 Add tests for functools.reduce 2019-08-15 16:51:02 +02:00
Windel Bouwman
1575b9d289 Merge pull request #1266 from corona10/complex__getnewargs__
complex: Implement __getnewargs__
2019-08-15 15:25:32 +02:00
Windel Bouwman
87b9e6e466 Merge pull request #1255 from zsaladin/json_dump
Add `json.dump` and `json.load`
2019-08-15 15:03:59 +02:00
Windel Bouwman
45292e8abc Merge pull request #1257 from SeungUkLee/socket-htonl
Impl socket htonl
2019-08-15 13:02:47 +02:00
ChJR
151823aadd Add tests for int.__(x)xshift__ methods. 2019-08-15 19:01:16 +09:00
MinGyo Jung
e1ac729770 #1224 Add floating point formatting test for int 2019-08-15 18:52:57 +09:00
Jeong YunWon
70fe087566 object.__subclasshook__ empty classmethod 2019-08-15 17:40:46 +09:00
MinGyo Jung
985cbb9df6 Merge branch 'master' of https://github.com/rustpython/rustpython 2019-08-15 17:39:33 +09:00
MinGyo Jung
d508f8ad7c #1224 Add test code for floating point formatting
Not supports #.#f format
2019-08-15 17:36:11 +09:00
rusty
3aa2daae5e Add tests of Ellipsis 2019-08-15 17:08:01 +09:00
JimJeon
9c4b08c7cd Add tests for round functions 2019-08-15 16:16:06 +09:00
Daehee Kim
6715759868 Add tests for json.load 2019-08-15 16:10:23 +09:00
Daehee Kim
5285c8eeac Add tests for json.dump 2019-08-15 16:09:36 +09:00
Dong-hee Na
4ea960c67b complex: Implement __getnewargs__ 2019-08-15 15:34:07 +09:00
rusty
78017514ae Add __reduce__ method to Ellipsis 2019-08-15 15:28:24 +09:00
Windel Bouwman
7d08f8fe05 Merge pull request #1248 from RustPython/minor-fixes
Add sunau library. Add default option to dis example.
2019-08-15 07:06:10 +02:00
SeungUkLee
74618c99ef Impl socket htonl 2019-08-15 12:24:14 +09:00
JunMock
03df88729d add __rand__ __ror__ 2019-08-15 12:07:02 +09:00
Windel Bouwman
e1b0cb0b66 Fix #1247. Add two additional audio format libraries. 2019-08-14 16:20:26 +02:00
Aviv Palivoda
d7ea32cde9 Merge pull request #1238 from youknowone/macos-stdlib-subprocess
Fix stdlib_subprocess for macOS
2019-08-13 18:22:31 +03:00
Windel Bouwman
e0431c0ca7 Merge pull request #1243 from mpajkowski/zlib_module
Implement zlib module
2019-08-13 07:12:21 +02:00
Jeong YunWon
039cc12852 int.__[r]floordiv__ to use BigInt.div_floor 2019-08-13 11:05:34 +09:00
Jeong YunWon
e819b9a2e3 Add int.__rdivmod__ 2019-08-13 11:01:28 +09:00
Jeong YunWon
f486f3031f Fix int.__divmod__ 2019-08-13 11:01:28 +09:00
Windel Bouwman
7fd01b0643 Merge pull request #1231 from yjhmelody/fix_int_fn
fix int fn
2019-08-12 19:52:25 +02:00
Marcin Pajkowski
2752cc4ae0 Add tests for zlib 2019-08-12 18:32:24 +02:00
Marcin Pajkowski
94468f5e1d Remove assert os.getppid() < os.getpid() 2019-08-12 12:15:47 +02:00