Commit Graph

999 Commits

Author SHA1 Message Date
Windel Bouwman
62cad730d3 Merge pull request #364 from HomerMcMillan/string_is_methods
Fix string is* methods
2019-02-06 10:55:06 +01:00
Windel Bouwman
2c693d9a2e Merge pull request #336 from ZapAnton/fix_redundant_field_names
Fixed the 'redundant_field_names' clippy warnings
2019-02-06 10:48:45 +01:00
Homer McMillan
00ef668022 String is* methods return false on empty string #363 2019-02-06 03:15:03 -05:00
Homer McMillan
94dc6ece64 Fix python tests that travis didn't like 2019-02-06 02:42:44 -05:00
Windel Bouwman
040a377d06 Merge branch 'master' into fix_redundant_field_names 2019-02-06 08:14:14 +01:00
Windel Bouwman
a26279111d Merge pull request #353 from OddCoincidence/range-index
Add range.index
2019-02-06 08:00:11 +01:00
Windel Bouwman
f13cb62393 Merge pull request #357 from veera83372/object-methods
Added __doc__ atrribute for object
2019-02-06 07:53:01 +01:00
Windel Bouwman
8a53547e2b Merge pull request #355 from NLincoln/compliant-complex-repr
repr() of complex numbers is compliant with cpython
2019-02-06 07:52:31 +01:00
Windel Bouwman
819e5a01e4 Merge pull request #354 from HomerMcMillan/bytes_iter
Add bytes.__iter__
2019-02-06 07:45:10 +01:00
Windel Bouwman
0a3f15ae22 Merge pull request #348 from skinny121/iter_lazy
Made filter and map lazy
2019-02-06 07:43:07 +01:00
Homer McMillan
0085470c83 Add tests for bytearray 2019-02-06 01:26:51 -05:00
Homer McMillan
1270aee628 Add is* methods to bytearray 2019-02-06 01:22:23 -05:00
veera venky
3de17b9083 Added __doc__ atrribute for object 2019-02-06 08:35:57 +05:30
Nathan
12e6de0503 repr() of complex numbers is compliant with cpython 2019-02-05 20:59:41 -06:00
Homer McMillan
35a06bc428 Add bytes.__iter__ 2019-02-05 21:44:14 -05:00
Joey Hain
49a23a8483 remove misleading contains method 2019-02-05 16:26:12 -08:00
ben
6d494fb9ee Merge branch 'master' into iter_lazy 2019-02-06 12:46:16 +13:00
ben
6c8ec39882 Make map and filter into proper types 2019-02-06 12:45:14 +13:00
Windel Bouwman
aaf0eab530 Merge pull request #342 from ZapAnton/fix_collapsible_if
Fixed the 'collapsible_if' clippy warnings
2019-02-05 23:34:29 +01:00
Windel Bouwman
87ceed77ad Merge pull request #287 from makarchuk/float-conversion
Float Conversion for #211
2019-02-05 23:19:20 +01:00
ben
3a81fd1ef4 style: rustfmt 2019-02-06 11:15:07 +13:00
ben
6e99ad32db Added tests for when function in filter/map raises StopIteration 2019-02-06 11:12:25 +13:00
ben
f85bc13ded Fix misunderstanding about behaviour if filter function is None 2019-02-06 11:12:25 +13:00
ben
91fcd7782e Make map lazy and accept multiple iterables 2019-02-06 11:12:25 +13:00
ben
8cc6821c44 Make filter lazy 2019-02-06 11:12:25 +13:00
Windel Bouwman
69e3571d0c Merge pull request #341 from ZapAnton/toplevel_ref_arg
Fixed the 'toplevel_ref_arg' clippy warning
2019-02-05 22:42:31 +01:00
Windel Bouwman
3fb0f32a87 Merge pull request #335 from ZapAnton/fix_ptr_arg
Fixed the 'ptr_arg' clippy warnings
2019-02-05 22:36:29 +01:00
Joey Hain
b0a2f6f87d Add range.index 2019-02-05 13:34:54 -08:00
Windel Bouwman
9d5a953c8a Merge pull request #337 from ZapAnton/fix_unneeded_field_pattern
Fixed the 'unneeded_field_pattern' clippy warnings
2019-02-05 22:34:31 +01:00
Windel Bouwman
276b51c4d5 Merge pull request #338 from stratusjerry/master
Spellcheck
2019-02-05 22:32:26 +01:00
Windel Bouwman
835a55777b Merge pull request #334 from ZapAnton/fix_len_zero
Fixed the 'len_zero' clippy warnings
2019-02-05 22:31:54 +01:00
Windel Bouwman
907ce8801f Merge pull request #339 from ZapAnton/fix_needless_return
Fixed the 'needless_return' clippy warnings
2019-02-05 22:30:32 +01:00
ZapAnton
fb9fa27555 Fixed the 'redundant_field_names' clippy warnings
This replaces all the occurrences of the Struct {field : field}
with the Struct {field}.

Relevant clippy warning: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
2019-02-05 21:56:16 +03:00
Timur
74b84d4be1 Merge branch 'float-conversion' of github.com:makarchuk/RustPython into float-conversion 2019-02-05 21:56:14 +03:00
Timur
4b2787ea1d Comment out math from tests due to Travis errors 2019-02-05 21:54:13 +03:00
ZapAnton
b0cbb23b43 Fixed the 'collapsible_if' clippy warnings
Relevant clippy warning: https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if
2019-02-05 21:49:07 +03:00
ZapAnton
0d3b218237 Fixed the 'toplevel_ref_arg' clippy warning
This replaces all the occurrences of the
'let ref var = another_var' with the
'let var = &another_var'

Relevant clippy warning: https://rust-lang.github.io/rust-clippy/master/index.html#toplevel_ref_arg
2019-02-05 21:45:56 +03:00
ZapAnton
526ed98d93 Fixed the 'needless_return' clippy warnings
This replaces all the occurrences of the 'return var;' at
the end of the functions with the 'var'.

Relevant clippy warning: https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
2019-02-05 21:39:38 +03:00
stratusjerry
7134885775 Spellcheck 2019-02-05 13:39:16 -05:00
ZapAnton
d445e3082a Fixed the 'unneeded_field_pattern' clippy warnings
This replaces all the occurrences of the Struct {field: _} with
the Struct { .. }.

Relevant clippy warning: https://rust-lang.github.io/rust-clippy/master/index.html#unneeded_field_pattern
2019-02-05 21:37:41 +03:00
ZapAnton
1a6840280b Fixed the 'ptr_arg' clippy warnings
This replaces all the occurrences of &<dynamic collection><T>
with the &[T].

Relevant clippy warning: https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg
2019-02-05 21:22:16 +03:00
ZapAnton
6fb91ddfed Fixed the 'len_zero' clippy warnings
This replaces all the occurrences of the <collection>.len() == 0
with the <collection>.is_empty() and the occurrences of the
<collection>.len() > 0 with the !<collection>.is_empty()

Relevant clippy warning: https://rust-lang.github.io/rust-clippy/master/index.html#len_zero
2019-02-05 20:54:49 +03:00
Windel Bouwman
7941480fca Merge pull request #269 from mrecachinas/add-int-doc
Add int.__doc__ (addresses #261)
2019-02-05 18:26:28 +01:00
Windel Bouwman
0f0ceeaa00 Merge pull request #332 from lausek/imports
raise ImportError in import list
2019-02-05 18:25:41 +01:00
Windel Bouwman
fa91cc36e8 Merge pull request #329 from ZapAnton/int_invert
int type: Added __invert__
2019-02-05 18:14:21 +01:00
Windel Bouwman
e481063ca6 Fixed duplicate os error. 2019-02-05 18:13:08 +01:00
Windel Bouwman
815dd0937a Merge pull request #309 from holygits/add-os-error
Add OSError
2019-02-05 17:59:14 +01:00
Windel Bouwman
676f60296d Merge pull request #330 from ichyo/string-len
Use the number of characters instead of bytes for str.__len__
2019-02-05 17:57:58 +01:00
Windel Bouwman
8e006274ed Merge pull request #325 from rmliddle/implement-io
Factored OS Module for Windows Support, Unsafe Handling of Raw FileHandles and Descriptors
2019-02-05 17:49:52 +01:00
Windel Bouwman
b710eedb04 Merge pull request #324 from veera83372/refactor-py
Refactored: whats_left_to_implement.py
2019-02-05 17:45:10 +01:00