Commit Graph

71 Commits

Author SHA1 Message Date
Joey Hain
bf1fe9e5f2 Convert set payload 2019-03-04 21:46:17 -08:00
coolreader18
f364ea5943 Fix a bunch of clippy lints 2019-03-01 18:41:45 -06:00
Joey Hain
3dcbc4d2aa Fix set 2019-02-25 22:20:15 -08:00
Joey Hain
e959908a49 Fix iterator 2019-02-25 21:26:15 -08:00
Joey Hain
f10fa6db44 Remove outer RefCell from PyObjectRef 2019-02-25 21:01:37 -08:00
Aviv Palivoda
fc10560308 Add set.{__ior__,__iand__,__isub__,__ixor__} 2019-02-22 16:50:40 +02:00
Aviv Palivoda
7cf25440fa Add set.__iter__ 2019-02-22 16:25:55 +02:00
Aviv Palivoda
21b6616e8e Add set.symmetric_difference_update 2019-02-21 19:33:20 +02:00
Aviv Palivoda
1621d78326 Add set.difference_update 2019-02-21 19:02:05 +02:00
Aviv Palivoda
a4b814e9a7 Add set.intersection_update 2019-02-21 18:55:22 +02:00
Aviv Palivoda
5f3664e87d Add set.update 2019-02-21 18:34:47 +02:00
Aviv Palivoda
a89b0593da Add set.pop 2019-02-21 18:34:47 +02:00
Joey
df76ffe116 Replace most relative imports with 2018-style crate 2019-02-20 08:50:53 -08:00
Windel Bouwman
a47e979f29 Merge branch 'master' into add_list_copy 2019-02-18 08:08:31 +01:00
Tom Schuster
4762d654b4 implement set.discard 2019-02-15 20:46:00 +01:00
janczer
1e92bb892e Fix fmt in set.copy 2019-02-15 19:48:48 +01:00
janczer
f45f307a55 Add copy method to list object 2019-02-15 19:48:48 +01:00
Windel Bouwman
a541b509a9 Merge branch 'master' into Add-set-funcs3 2019-02-15 16:53:10 +01:00
Aviv Palivoda
412df7472f set raises TypeError when unhashable element is passed in creation 2019-02-15 15:34:55 +02:00
Aviv Palivoda
49e10ed497 Add set.symmetric_difference 2019-02-15 15:13:05 +02:00
Aviv Palivoda
938688cb69 Add set.difference 2019-02-15 15:13:05 +02:00
Aviv Palivoda
23ef487927 Add set.intersection 2019-02-15 15:13:05 +02:00
Aviv Palivoda
83c4eda62c Add set.union 2019-02-15 15:13:05 +02:00
janczer
b77165c5ad Fix fmt set.clear 2019-02-13 14:44:50 +01:00
janczer
d07b3dff98 Add clear method to set 2019-02-13 14:37:05 +01:00
ZapAnton
606ddd2216 Fixed the needless_return clippy warnings 2019-02-12 16:30:03 +03:00
Joey Hain
dab4f7385f Use NotImplemented in binary operations 2019-02-10 09:19:06 -08:00
Windel Bouwman
68002f1a9e Fix build error of removed str method. 2019-02-10 13:00:54 +01:00
Windel Bouwman
9497ee89e8 Merge pull request #292 from mcon/sets-using-hashes
Items are now added to sets using proper __hash__ function calls.
2019-02-10 12:57:46 +01:00
ben
5b637385ea Fixed #191, fixes recursive repr() for the standard collections 2019-02-10 13:22:03 +13:00
Matthew Constable
0322b937f3 Updated formatting 2019-02-09 21:58:01 +00:00
Matthew Constable
9271bfcb84 Moved from using BigInt in set hash to u64, which is guaranteed to be of constant size - u64 seems easier than usize as it's the same size across all platforms. 2019-02-09 21:57:26 +00:00
Matthew Constable
cca16ff597 Simplify calling __hash__ method 2019-02-09 21:38:11 +00:00
Matthew Constable
c673384cc4 Merge branch 'master' into sets-using-hashes 2019-02-09 21:04:33 +00:00
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