Commit Graph

1690 Commits

Author SHA1 Message Date
ZapAnton
38930984ec Fixed the redundant_pattern_matching clippy warning 2019-02-12 16:45:44 +03:00
ZapAnton
291dba6bb6 Fixed the toplevel_ref_arg clippy warning 2019-02-12 16:44:47 +03:00
ZapAnton
5fe373555f Fixed the match_bool clippy warning 2019-02-12 16:43:59 +03:00
ZapAnton
45b9ef9719 Fixed the op_ref clippy warnings 2019-02-12 16:42:53 +03:00
ZapAnton
050bf459b0 Fixed the into_iter_on_ref clippy warning 2019-02-12 16:40:08 +03:00
ZapAnton
9144109f7d Fixed the useless_vec clippy warning 2019-02-12 16:39:38 +03:00
ZapAnton
66569160fc Fixed the redundant_closure clippy warning 2019-02-12 16:38:15 +03:00
ZapAnton
8b6d0b3721 Fixed the op_ref clippy warning 2019-02-12 16:37:02 +03:00
ZapAnton
00cfa47f64 Fixed the should_implement_trait clippy warning 2019-02-12 16:35:28 +03:00
ZapAnton
606ddd2216 Fixed the needless_return clippy warnings 2019-02-12 16:30:03 +03:00
ZapAnton
0d1b85a8da Fixed the collapsible_if clippy warning 2019-02-12 16:28:49 +03:00
ZapAnton
d86ffc40f6 Fixed the redundant_field_names clippy warnings 2019-02-12 16:07:24 +03:00
Adam Kelly
a735bb3dfc Add __repr__ and __new__ to NoneType. 2019-02-12 10:09:13 +00:00
Adam Kelly
8a89e13a7e Add .co_consts to code class. 2019-02-12 09:47:02 +00:00
Adam Kelly
8cc2d5f091 Move implementation of CodeObject after Instructions. 2019-02-12 09:40:55 +00:00
Adam
8835b47d1f Merge pull request #444 from skinny121/object_format
Add object.__format__
2019-02-12 08:52:20 +00:00
ben
d14aeef2e5 Handle passing no format_spec into format() 2019-02-12 20:24:57 +13:00
ben
5c12367f59 Merge branch 'master' into object_format 2019-02-12 20:09:27 +13:00
ben
93e5634d39 Fixes #328, add object.__format__ 2019-02-12 20:06:50 +13:00
Windel Bouwman
9177252cf9 Merge pull request #259 from RustPython/list_insert
Implemented list.insert()
2019-02-12 06:10:20 +01:00
Windel Bouwman
d0d27babba Merge pull request #443 from OddCoincidence/fix-typo
Fix typo in VirtualMachine::_and
2019-02-12 06:06:31 +01:00
Joey Hain
beb75a4dd0 Fix typo in VirtualMachine::_and 2019-02-11 19:51:17 -08:00
Joey Hain
38c0ea06e5 Support float(<str>) and float(<bytes>) 2019-02-11 19:40:55 -08:00
Windel Bouwman
6f0ac744f2 Merge pull request #441 from RustPython/dont_call__eq__
Dont call  eq
2019-02-11 23:17:29 +01:00
Shing Lyu
d188f05ffc Fix errors introduced during rebasing 2019-02-11 22:59:08 +01:00
Shing Lyu
b265601c58 Use isize in list.insert instead of i64 2019-02-11 22:52:55 +01:00
Shing Lyu
3467db51d0 Simplify the number logic for list.insert() 2019-02-11 22:52:55 +01:00
Shing Lyu
c99cb0c366 Rustfmt fixes 2019-02-11 22:52:55 +01:00
Shing Lyu
8ded37d566 Raise OverflowError is the index for list.index() overflows 2019-02-11 22:52:27 +01:00
Shing Lyu
b101a52dd0 Added list.insert() 2019-02-11 22:50:10 +01:00
Shing Lyu
cc407ed90a Merge pull request #412 from veera83372/travis-clippy
added cargo clippy to travis
2019-02-11 22:44:58 +01:00
Windel Bouwman
cb59d76900 Merge pull request #439 from RustPython/move_unwrap_constant
Move unwrap_constant from Frame to PyContext.
2019-02-11 22:11:47 +01:00
Adam Kelly
67710d6e28 Don't call __eq__ directly.
Doing so creates a very confusing error when NotImplemented in returned.
2019-02-11 21:11:33 +00:00
Adam Kelly
50be99a0a1 Failing test case for in and index where types don't match. 2019-02-11 21:11:33 +00:00
Adam
23aa4a71ea Merge pull request #436 from Tom1380/master
Fix #390.
2019-02-11 21:09:32 +00:00
Adam Kelly
860edc6dfe Move unwrap_constant from Frame to PyContext. 2019-02-11 15:52:19 +00:00
Adam
89495e102a Merge pull request #418 from veera83372/format-exception
Fixing assert second argument formatting
2019-02-11 13:06:07 +00:00
Adam
1033f20e36 Merge pull request #430 from RustPython/dict5
Change to more usage of VirtualMachine in anticipation of proper dicts
2019-02-11 13:04:28 +00:00
Adam
ca51f2d10e Merge pull request #438 from ZapAnton/fix_clippy
Fixed several small clippy warnings
2019-02-11 13:03:07 +00:00
Tommaso Thea Cioni
7e1589d811 Minor fix. 2019-02-11 13:38:53 +01:00
Adam
45f45bf43a Merge pull request #433 from OddCoincidence/not-implemented
Use NotImplemented in binary operations
2019-02-11 12:37:22 +00:00
Tommaso Thea Cioni
c04f4219eb Removed the __code__ attribute from the builtin_function_or_method type. 2019-02-11 13:35:59 +01:00
ZapAnton
e51c75e1df Fixed or_fun_call clippy warnings 2019-02-11 15:29:19 +03:00
ZapAnton
56e2d4c495 Fixed into_iter_on_ref clippy warning 2019-02-11 15:24:51 +03:00
ZapAnton
c8d619c123 Fixed useless_let_if_seq clippy warnings 2019-02-11 15:24:13 +03:00
Tommaso Thea Cioni
cc56f318cb Merge branch 'master' of https://github.com/RustPython/RustPython 2019-02-11 13:21:41 +01:00
Adam
5c378d3bc5 Merge pull request #437 from rmliddle/develop
OS Tidy and Name fix
2019-02-11 12:17:40 +00:00
ZapAnton
d5b87558a2 Fixed map_clone clippy warnings 2019-02-11 15:09:53 +03:00
ZapAnton
1043543f16 Fixed cast_lossless clippy warnings 2019-02-11 15:02:00 +03:00
ZapAnton
b1a4aea9f3 Fixed explicit_counter_loop clippy warning 2019-02-11 14:59:22 +03:00