Commit Graph

2384 Commits

Author SHA1 Message Date
ben
84eff4a7ac Add __name__ and __module__ to functions 2019-04-11 20:13:23 +12:00
Adam Kelly
939f109375 Merge branch 'dict_into_iter' 2019-04-11 08:29:13 +01: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
ef55efb631 Merge pull request #814 from RustPython/coolreader18/pyproperty-attr
Change #[pymethod(property)] to #[pyproperty]
2019-04-10 22:19:00 -05: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
coolreader18
2bdaa02700 Improve error messages 2019-04-10 17:45:07 -05:00
coolreader18
d099165e3b Rename item_name -> item_ident 2019-04-10 17:41:45 -05:00
coolreader18
47bd9680f9 Change ClassItem to enum 2019-04-10 17:41:25 -05: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
Adam Kelly
e04275b199 Missed get_key_values_pairs removal in wasm. 2019-04-10 09:48:53 +01: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
coolreader18
cbdab226d9 Change #[pymethod(property)] to #[pyproperty] 2019-04-09 22:07:21 -05: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
Adam
d84ad431e1 Merge pull request #811 from RustPython/dict_view_len
Add __len__ to dictionary views.
2019-04-09 14:09:49 +01: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
958a0a2600 Merge pull request #809 from skinny121/dict_test_cleanup
Cleanup dict test snippet
2019-04-09 10:19:32 +01:00
Adam Kelly
d9216c87f1 Remove done todo. 2019-04-09 10:17:17 +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
Windel Bouwman
981c14fb0d Merge pull request #795 from RustPython/coolreader18/wasm-cleanup1
[WASM] Clean up a bit
2019-04-09 07:46:24 +02:00
coolreader18
422ab69b99 Use impl style classes 2019-04-08 21:50:38 -05:00
coolreader18
c581852b5b Merge branch 'master' into coolreader18/wasm-cleanup1 2019-04-08 21:49:04 -05:00
coolreader18
1568637d26 Merge branch 'master' into coolreader18/wasm-cleanup1 2019-04-08 21:41:45 -05: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
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
d0e6d2fa32 add tests for custom iters 2019-04-08 13:18:37 -06:00
Rachel Powers
4e277cfcc2 move to useing PyIterable 2019-04-08 12:41:28 -06:00
coolreader18
e7e126e31d Fix whats_left.sh 2019-04-08 12:30:53 -05: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
29e9753e51 Even newer style class definitions. 2019-04-08 15:02:04 +01:00