Commit Graph

651 Commits

Author SHA1 Message Date
ben
84eff4a7ac Add __name__ and __module__ to functions 2019-04-11 20:13:23 +12:00
Windel Bouwman
58a393f047 Merge pull request #804 from jgirardet/refactore_bytes
refactor bytes
2019-04-11 08:20:01 +02:00
jgirardet
9d25a216de fix some tests, run clippy 2019-04-10 21:39:16 +02:00
Jimmy Girardet
54c7335f1c SyntaxError for non ascii char 2019-04-10 18:05:28 +02:00
jgirardet
751c3d52e2 use vec! for int arg in bytes new 2019-04-10 13:24:31 +02: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
2940c7cc28 add islpaha isalnum isdigit islower isupper isspace istitle 2019-04-09 14:33:29 +02: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
23a4b1e9d8 Additional tests for dictionary iteration. 2019-04-09 10:13:44 +01:00
ben
046e4b3fe3 Cleanup dict test snippet 2019-04-09 20:43:59 +12: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
4d53ddedb0 test for if iter raises error 2019-04-08 14:45:34 -06:00
jgirardet
8232a4d285 finish contains 2019-04-08 21:27:44 +02:00
Rachel Powers
d0e6d2fa32 add tests for custom iters 2019-04-08 13:18:37 -06:00
Windel Bouwman
21e890daa4 Merge pull request #802 from andrew-ld/master
use a code generator for not implemented tests
2019-04-08 17:05:52 +02:00
andrew
3aa110a296 add .gitignore 2019-04-08 16:03:35 +02:00
andrew
2811f27bb5 add a warning 2019-04-08 16:03:24 +02:00
Adam Kelly
5c4755ffd7 Separate iterators for items/keys/values. 2019-04-08 11:08:45 +01: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
118c98ccc7 exhaustive (hopefully) test snippets
I attempted to cover every case with the snippets
 but I easily could of missed some.
2019-04-07 19:12:03 -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
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
Aviv Palivoda
3bc1e3598c Use PyIterable 2019-04-07 21:26:20 +03:00
jgirardet
2eb8e7bf2b new ok for pybytes 2019-04-07 18:55:35 +02:00
Windel Bouwman
48cca16dd7 Merge pull request #801 from skinny121/dict_copy_update
Implement copy and update dict methods
2019-04-07 12:24:51 +02:00
andrew
f03a164c14 use a code generator for not implemented tests 2019-04-07 12:22:10 +02:00
ben
32051c9d96 Implement copy and update dict methods 2019-04-07 19:19:39 +12:00
ben
d5a9d96d62 Expose function.__defaults__ and function.__kwdefaults__(only getters) 2019-04-07 07:38:42 +12:00
ben
5fd3cf2bcd Implemented keyword only defaults 2019-04-07 07:38:42 +12:00
Windel Bouwman
d577bb7ac9 Merge pull request #787 from palaviv/os-fd
Add os.{read,write,remove,unlink}
2019-04-06 17:02:31 +02:00
Windel Bouwman
1faa7fa202 Merge pull request #783 from Ryex/ryex-impl-list.__delitem__
Implement list.__delitem__
2019-04-06 16:56:21 +02:00
Windel Bouwman
0f6a25c38e Merge pull request #791 from RustPython/dict_protocols
Dict protocols
2019-04-06 16:48:30 +02:00
Windel Bouwman
a6858befbc Merge pull request #792 from RustPython/docstring-fix
Fix moment when docstring is set.
2019-04-06 16:39:33 +02:00
Aviv Palivoda
04acfe2665 Remove failing line in windows 2019-04-06 17:29:52 +03:00
Windel Bouwman
bcf94ed8bf Merge pull request #788 from RustPython/syntax-enhancements
Fix syntax for float literals, statements seperated by semicolons and…
2019-04-06 12:31:53 +02:00
Windel Bouwman
afb28bfccb Fix moment when docstring is set. 2019-04-06 11:53:59 +02:00