Aviv Palivoda
2df9d799f5
Fix formatting errors
2019-02-09 10:18:05 +02:00
Aviv Palivoda
9ec2eef579
Add set.{issubset,issuperset}
2019-02-08 18:33:04 +02:00
Aviv Palivoda
2bc946b748
Add set.__lt__
2019-02-08 18:27:37 +02:00
Aviv Palivoda
adee66168b
Add set.__le__
2019-02-08 18:25:33 +02:00
Aviv Palivoda
1ee583ef61
Use set_compare_inner
2019-02-08 18:06:22 +02:00
Aviv Palivoda
358aa6b2c0
Add set.__gt__
2019-02-08 17:50:36 +02:00
Aviv Palivoda
0c737ae8d2
Add set.__eq__
2019-02-08 17:31:45 +02:00
Aviv Palivoda
6274c3fe8b
Add set.__ge__
2019-02-08 17:18:14 +02:00
Windel Bouwman
3d2d04596c
Merge pull request #343 from ZapAnton/fix_various_clippy
...
Fixed various small clippy warnings
2019-02-07 17:35:29 +01:00
Windel Bouwman
4e584efa57
Merge pull request #374 from ZapAnton/set_doc
...
(frozen)set type: Added __doc__
2019-02-07 17:29:07 +01:00
ZapAnton
694cbda03d
(frozen)set type: Added __doc__
2019-02-07 00:57:29 +03:00
Adam Kelly
fd344ec1e0
Remove unnecessary to_bigint().unwrap() everywhere.
2019-02-06 17:38:01 +00:00
ZapAnton
3464828499
Fixed various small clippy warnings
2019-02-06 13:24:24 +03:00
Windel Bouwman
040a377d06
Merge branch 'master' into fix_redundant_field_names
2019-02-06 08:14:14 +01: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
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
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
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
892493e464
Rename PyObjectKind into PyObjectPayload
2019-01-30 18:06:27 +01:00
coolreader18
80573b0544
Format PyObject's correctly and nicely
2018-12-26 18:09:49 -06:00
Windel Bouwman
4095e0cad7
Modify location of set_attr so that we are able to create str python objects for the dictionary.
2018-12-12 22:06:19 +01:00
Windel Bouwman
c69b43d13b
Add frozenset class, callable function and enumerate function.
2018-11-06 21:42:42 +01:00
Windel Bouwman
039b5bbbb7
Implement dict __setitem__
2018-11-02 22:04:18 +01:00
Windel Bouwman
89cfdbe3dd
Use __setitem__ to store elements in list. Also refactor get_elements to return a reference to the elements, not a copy.
2018-10-31 23:18:26 +01:00
Windel Bouwman
f6cced5d65
Change integer type into bigint
2018-10-30 21:01:31 +01:00
Windel Bouwman
1d854a8fbb
Modify isinstance call signature to take reference to a python reference.
2018-10-27 17:58:54 +02:00
Windel Bouwman
5707548436
Add set.add method
2018-10-17 21:08:46 +02:00
Éloi Rivard
b18156ac21
Added set object membership test
2018-10-17 19:39:17 +02:00
Windel Bouwman
a450c0e3da
Add builtin type set
2018-10-17 17:14:46 +02:00