Commit Graph

1630 Commits

Author SHA1 Message Date
ben
84eff4a7ac Add __name__ and __module__ to functions 2019-04-11 20:13:23 +12:00
Adam Kelly
aeb84936ff Merge branch 'master' into dict_into_iter 2019-04-11 08:28:12 +01:00
Windel Bouwman
58a393f047 Merge pull request #804 from jgirardet/refactore_bytes
refactor bytes
2019-04-11 08:20:01 +02:00
coolreader18
6a190e39f3 Fix __radd__ and __rmul__ 2019-04-10 20:41:06 -05:00
coolreader18
dd4539b1a6 Change to use PyClassImpl::extend_class 2019-04-10 18:02:30 -05:00
coolreader18
c5f4eab142 Change objint to impl style with properties 2019-04-10 17:55:24 -05:00
jgirardet
9d25a216de fix some tests, run clippy 2019-04-10 21:39:16 +02:00
jgirardet
751c3d52e2 use vec! for int arg in bytes new 2019-04-10 13:24:31 +02:00
Adam Kelly
8f840d5376 Pick code review nits. 2019-04-10 09:28:54 +01:00
Adam Kelly
9a92159413 Remove unneeded Cell on DictIter. 2019-04-10 09:26:03 +01:00
Jimmy Girardet
977f56ade1 add bytes.fromhex 2019-04-10 10:08:10 +02:00
Jimmy Girardet
5cc83a35aa hex 2019-04-09 17:08:38 +02:00
Jimmy Girardet
9b763072fe add upper lower 2019-04-09 16:23:56 +02:00
Jimmy Girardet
6c745f68dd fix typo, fix bytesinner.add now return Vec[u8] 2019-04-09 14:43:13 +02:00
Jimmy Girardet
2940c7cc28 add islpaha isalnum isdigit islower isupper isspace istitle 2019-04-09 14:33:29 +02:00
Adam Kelly
ec5fd550de Implement IntoIterator for PyDictRef. 2019-04-09 11:30:52 +01:00
Adam Kelly
25d3f83e4d Add __len__ to dictionary views. 2019-04-09 11:28:25 +01:00
Adam
31fd2936c5 Merge pull request #796 from RustPython/dict_iters
Dict iters
2019-04-09 11:11:14 +01:00
Adam Kelly
f3f3d8a478 Merge branch 'Ryex-ryex-list.__delitem__slice_error' 2019-04-09 10:31:55 +01:00
Adam
39042e6475 Merge pull request #805 from Ryex/ryex-list.__setitem__
implement  list.__setitem__ with slice and int indexing
2019-04-09 10:24:48 +01:00
Adam Kelly
d9216c87f1 Remove done todo. 2019-04-09 10:17:17 +01:00
Rachel Powers
1101b6571c fix error related to #746 but for list.__delitem__ 2019-04-08 16:17:57 -06:00
Rachel Powers
b2a1f6580b fix error when start or stop of slice is -1 and step != 1 2019-04-08 15:56:06 -06:00
jgirardet
b535958310 add getitem, fix contain error_message 2019-04-08 23:12:40 +02:00
Rachel Powers
4c50defa37 extend PyIterable::try_from_object to work with sequences 2019-04-08 13:46:23 -06:00
jgirardet
8232a4d285 finish contains 2019-04-08 21:27:44 +02:00
Rachel Powers
4e277cfcc2 move to useing PyIterable 2019-04-08 12:41:28 -06:00
Adam Kelly
29e9753e51 Even newer style class definitions. 2019-04-08 15:02:04 +01:00
Adam Kelly
2d127b9834 Use macro to generate full set of views and iterators. 2019-04-08 12:11:59 +01:00
Adam Kelly
5c4755ffd7 Separate iterators for items/keys/values. 2019-04-08 11:08:45 +01:00
Adam Kelly
9c32de954b Add iterator for dictionary keys. 2019-04-08 10:35:09 +01:00
Rachel Powers
a23b5bc470 cleanup and cargo fmt 2019-04-07 19:32:11 -06:00
Joey
7910c95ff0 Merge pull request #785 from palaviv/set-inner
refactor objset using inner
2019-04-07 18:20:37 -07:00
Rachel Powers
4d8a56aea1 list.__setitem__ with slice and int indexing
optimisation is uncertain
correctness is uncertain

but it does appear to work
2019-04-07 19:09:44 -06:00
jgirardet
ec65b8480f add contains 2019-04-08 00:45:53 +02:00
jgirardet
3c736c1f94 iter 2019-04-08 00:11:20 +02:00
Aviv Palivoda
abc72e9992 contains return bool 2019-04-07 23:54:42 +03:00
jgirardet
dddf9fee39 gt lt ge le 2019-04-07 22:42:47 +02:00
jgirardet
ec98b4d6bf repr len eq 2019-04-07 22:36:13 +02:00
Aviv Palivoda
5ae921dc57 update function support iterable 2019-04-07 23:26:59 +03:00
Aviv Palivoda
848350d334 ior support only set and frozenset 2019-04-07 23:06:42 +03:00
Aviv Palivoda
3ed8727ee5 symmetric_difference support iterable 2019-04-07 23:01:49 +03:00
Aviv Palivoda
e011e3f327 intersection and difference support iterable 2019-04-07 22:36:56 +03:00
Aviv Palivoda
fa369ff779 Limit non-operator versions to set and frozenset 2019-04-07 22:09:37 +03:00
Joey Hain
c2e03ed342 fix int.__float__ 2019-04-07 11:56:59 -07:00
jgirardet
f538a92007 pybytes.__new__ ok 2019-04-07 20:34:27 +02:00
Aviv Palivoda
3bc1e3598c Use PyIterable 2019-04-07 21:26:20 +03:00
Joey Hain
ea61599da4 range: take self by ref 2019-04-07 10:07:36 -07:00
Joey Hain
e70f174eb6 str: take self by ref 2019-04-07 10:07:36 -07:00
Joey Hain
aec33634ca int: take self by ref 2019-04-07 10:07:31 -07:00