Commit Graph

1228 Commits

Author SHA1 Message Date
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
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
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
Jeong YunWon
70fe087566 object.__subclasshook__ empty classmethod 2019-08-15 17:40:46 +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
yjhmelody
b24444e9bc fix int fn 2019-08-11 19:48:18 +08:00
lynskylate
ab98775bd2 Optimize error info 2019-08-09 21:12:36 +08:00
lynskylate
3775e04dcd Fix pyobject truth value 2019-08-09 21:05:58 +08:00
Aviv Palivoda
93701098f9 Add Popen.communicate 2019-08-09 14:27:28 +03:00
coolreader18
64f2c8d2e6 Fix '' % {} 2019-08-08 17:41:39 -05:00
coolreader18
d6c9f2d972 Add __qualname__ and __module__ getters to objtype 2019-08-08 17:41:39 -05:00
Antonio Yang
0f4c2c10b7 byte.decode
- support ascii, utf-8 encoding
- raise LookupError for unhandled encoding
2019-08-01 22:57:17 +08:00
Windel Bouwman
42dca4433a Implement do_eq for String impl of DictKey. Also move get_item_option to dict type. 2019-07-28 21:39:21 +02:00
Windel Bouwman
38d9f4087e Implement dictionary indexing by trait. 2019-07-28 13:43:14 +02:00
Noah
a91470d67e Merge pull request #1171 from mpajkowski/iter_str
Implement str iterator support
2019-07-24 15:50:32 -04:00
Marcin Pajkowski
1f59532f82 Silent clippy with allowing range_plus_one
PySliceableSequence trait methods require Range<usize>
as arguments
2019-07-24 19:32:05 +02:00
Marcin Pajkowski
0e033ad93f Add str.__reversed__ method 2019-07-24 19:03:02 +02:00
Noah
7d2a7a54b2 Merge pull request #1169 from RustPython/optimizations1
Add some extra profiling trace points.
2019-07-24 12:30:31 -04:00
Marcin Pajkowski
db8eb7b8c3 Implement str.__iter__ and str.__next__ 2019-07-24 03:17:05 +02:00
Windel Bouwman
f994b0580f Move get_item_option back into ItemProtocol 2019-07-23 23:31:09 +02:00
Askaholic
73e418cd11 Add numerator and denominator properties for int 2019-07-23 12:38:53 -08:00
Windel Bouwman
e138a7303d Move get_item_option to PyDictRef struct. 2019-07-23 21:27:37 +02:00
Windel Bouwman
f7320cf545 Move Scope struct to its own file, making the frame module private in the process. 2019-07-23 20:39:47 +02:00