Commit Graph

1246 Commits

Author SHA1 Message Date
lynskylate
a0ee8114f0 Add __repr__ __str__ for super 2019-08-17 01:17:25 +08:00
Windel Bouwman
a90001edc2 Merge pull request #1287 from ChJR/feature/reduce_payload_occurrence/int
Reduce payload occurrence of int
2019-08-16 13:48:51 +02:00
ChJR
deb716df75 Change inner int methods without direct access to payload. 2019-08-16 17:51:54 +09:00
Noah
aa14a6bc48 Merge pull request #1273 from jmg7173/master
Add floating point formatting
2019-08-16 03:29:31 -05:00
ChJR
23505a297f Change int methods without direct access to payload. 2019-08-16 17:14:54 +09:00
MinGyo Jung
2c6c2b8084 Remove unreachable pattern 2019-08-16 16:41:53 +09:00
Noah
7a680c32a8 Merge pull request #1285 from ChJR/feature/simplify-error-formatting/str.__mod__
Simplify error formatting of str.__mod__ method.
2019-08-16 02:39:59 -05:00
ChJR
3972239ae5 Simplify error formatting of str.__mod__ method. 2019-08-16 16:16:25 +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
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
MinGyo Jung
f4e19889a1 #1224 Fix not suitable tests and solve CI failure 2019-08-16 15:38:56 +09:00
ChJR
440a25d222 Refactoring int.inner_xshift methods. 2019-08-16 14:57:07 +09:00
coolreader18
d33d5ce5f6 Initialize attributes on new modules 2019-08-15 23:06:30 -05:00
coolreader18
5499d81d7a Address feedback, simplify compilation code 2019-08-15 15:52:30 -05:00
coolreader18
2a795e0d8e Add module __repr__ 2019-08-15 15:52:26 -05:00
coolreader18
b6e061b652 Add nice message for no attribute on module 2019-08-15 15:30:02 -05: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
ca6ecdd923 Merge pull request #1249 from RustPython/organize-files
Attempt to reduce the size of the pyobject.rs files by splitting out …
2019-08-15 19:34:26 +02:00
ChJR
b8e86b24e6 Change int.inner_xshift wrong match guard routine. 2019-08-16 02:21:50 +09: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
Windel Bouwman
589c431c8c Merge master branch 2019-08-15 18:59:29 +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
5f285a5831 Merge pull request #1252 from mpajkowski/invoke_ref
Make func_ref an &PyObjectRef
2019-08-15 15:06:09 +02:00
Marcin Pajkowski
e65e9ff7c3 Make func_ref an &PyObjectRef 2019-08-15 13:45:47 +02:00
MinGyo Jung
26168bc1e5 #1224 Add integer supporting for float formatting 2019-08-15 18:53:46 +09:00
ChJR
f4b0195643 Add int.__rlshift__, int.__rrshift__ methods. 2019-08-15 18:51:09 +09:00
ChJR
95b5508f52 Refactoring int.__lshift__ int.__rshift__ methods. 2019-08-15 18:42:45 +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
1114d27e28 #1224 Add formating for floating point and test
Just supports "%f" types
2019-08-15 17:39:03 +09:00
rusty
a562cc9de1 Update __new__ method of Ellipsis 2019-08-15 17:07:03 +09:00
rusty
78e56c2b5c Update signature of __repr__ and __reduce__ method of Ellipsis 2019-08-15 17:04:00 +09:00
JimJeon
b8b83cc441 Apply cargo-fmt 2019-08-15 16:47:37 +09:00
JimJeon
a2e3e6b31e Add round feature for objint 2019-08-15 16:19:16 +09:00
JimJeon
befb9a239e Add round feature for objfloat when ndigits is 0 2019-08-15 16:16:40 +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
JunMock
d8e9f79c41 add __rand__ __ror__ 2019-08-15 12:19:40 +09:00
JunMock
03df88729d add __rand__ __ror__ 2019-08-15 12:07:02 +09:00
Windel Bouwman
d06dec77ea Attempt to reduce the size of the pyobject.rs files by splitting out builtin types. 2019-08-14 19:08:47 +02:00
Windel Bouwman
e1b0cb0b66 Fix #1247. Add two additional audio format libraries. 2019-08-14 16:20:26 +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
yjhmelody
c758b3629b fix clippy warning
Signed-off-by: yjhmelody <465402634@qq.com>
2019-08-12 23:47:20 +08:00
Windel Bouwman
0129bb5c75 Merge pull request #1226 from palaviv/subprocess-2
Extend subprocess.Popen
2019-08-11 20:47:14 +02:00