Commit Graph

2340 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
Aviv Palivoda
abc72e9992 contains return bool 2019-04-07 23:54:42 +03: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
coolreader18
53aa57dbbe Merge pull request #803 from RustPython/joey/self-by-ref
int, str, range: take self by shared reference
2019-04-07 14:54:08 -05: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
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
Aviv Palivoda
a0aa88d2fb clear return implicit None 2019-04-07 20:02:27 +03: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
Windel Bouwman
f4964dafbf Merge pull request #798 from skinny121/keyword_only_args
Implement keyword only argument defaults
2019-04-07 12:11:15 +02:00
Adam
90ded15339 Merge pull request #799 from RustPython/joey/ref-receiver
Allow first argument to be a shared ref to a python value
2019-04-07 10:02:03 +01:00
Adam
8a5d6ca79e Merge pull request #800 from skinny121/warning_classes
Add builtin warning classes
2019-04-07 09:51:23 +01:00
ben
32051c9d96 Implement copy and update dict methods 2019-04-07 19:19:39 +12:00
ben
02a21cd072 Add builtin warning classes 2019-04-07 17:42:10 +12:00
coolreader18
7ca3b77fcd Just a fn 2019-04-06 23:55:30 -05:00
coolreader18
5afc558564 Add id() method 2019-04-06 23:47:01 -05:00
Joey Hain
c2716040d2 float: take self by shared ref 2019-04-06 19:05:18 -07:00
Joey Hain
be55562457 Allow first argument to be a shared ref to a python value 2019-04-06 18:50:40 -07:00
ben
51732feaed Use get_item_option from ItemProtocol instead of get_item 2019-04-07 07:43:29 +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
d64554dab2 Merge pull request #797 from palaviv/os-dirs
Add os.{mkdir, mkdirs, rmdir, listdir}
2019-04-06 20:25:00 +02:00