Commit Graph

1239 Commits

Author SHA1 Message Date
silmeth
a2ab4473a3 add tests of error handling for wrong types of print() kwargs 2019-02-12 22:33:54 +01:00
silmeth
3d17cc0aa1 copy print() kwargs handling over to wasm_builtins 2019-02-12 22:27:04 +01:00
silmeth
7b7aa13295 microoptimize print (lock stdout, borrow strings) 2019-02-12 22:25:46 +01:00
Windel Bouwman
de98ac696b Merge pull request #442 from OddCoincidence/float-parsing
Support float(<str>) and float(<bytes>)
2019-02-12 18:45:50 +01:00
Windel Bouwman
17bde53ca3 Add end kwarg to print function. 2019-02-12 17:23:33 +01:00
Windel Bouwman
2645bfd47a Merge pull request #448 from ZapAnton/fix_clippy_warnings
Fixed several clippy warnings
2019-02-12 17:05:53 +01:00
Windel Bouwman
a75eea56ab Merge pull request #446 from RustPython/none_str
Add __repr__ and __new__ to NoneType.
2019-02-12 17:00:46 +01:00
ZapAnton
604883dc86 Fixed the len_zero clippy warning 2019-02-12 17:13:09 +03:00
ZapAnton
08d767b010 Fixed the unnecessary_mut_passed clippy warning 2019-02-12 17:12:11 +03:00
ZapAnton
e8467c3bfe Fixed the redundant_closure clippy warning 2019-02-12 17:10:53 +03:00
ZapAnton
a0f1f51863 Fixed the useless_asref clippy warnings 2019-02-12 17:09:52 +03:00
ZapAnton
ef65612008 Fixed the clone_double_ref clippy warning 2019-02-12 16:59:15 +03:00
ZapAnton
206ccc55fb Fixed the len_without_is_empty clippy warning 2019-02-12 16:49:34 +03:00
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
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