Commit Graph

453 Commits

Author SHA1 Message Date
Joey
eec76ef8e8 Don't require objtype import to use arg_check! macro 2019-02-21 08:38:02 -08:00
Adam
e2ee933256 Merge pull request #514 from RustPython/joey/crate-imports
Replace most relative imports with 2018-style crate imports
2019-02-21 15:29:38 +00:00
janczer
b833c08951 Add bytearray.{lower, upper} 2019-02-20 19:35:39 +01:00
Joey
df76ffe116 Replace most relative imports with 2018-style crate 2019-02-20 08:50:53 -08:00
Joey
b8cb9f73c5 Merge branch 'master' into add_check_byte_value 2019-02-20 06:40:58 -08:00
janczer
51f6ec2325 Add checking if value more then 255 in bytearraya 2019-02-20 07:10:42 +01:00
janczer
24176f7bbb Add more test for bytearray.pop and fix the panic message 2019-02-20 06:58:43 +01:00
janczer
bfdb82b5c1 Add pop to bytearray 2019-02-20 06:50:33 +01:00
janczer
2963dd5b66 Change error to panic in bytearray.clear 2019-02-19 20:38:38 +01:00
janczer
d5c91a8de0 Move clear method from bytes to bytearray 2019-02-19 07:11:13 +01:00
janczer
58369b6fbc Delete unnessesary code from dict.clear 2019-02-18 18:45:49 +01:00
janczer
85110f6fbf Add dict.clear and bytes.clear 2019-02-18 18:21:39 +01:00
Windel Bouwman
fcea8455fa Merge pull request #473 from janczer/add_list_copy
Add copy method to set object
2019-02-18 10:50:20 +01:00
Windel Bouwman
43d9fc5dc0 Merge branch 'master' into fix_equality 2019-02-18 08:12:12 +01:00
Windel Bouwman
a47e979f29 Merge branch 'master' into add_list_copy 2019-02-18 08:08:31 +01:00
Joey Hain
7abaea556a Micro-optimize list.__iadd__ 2019-02-17 14:30:38 -08:00
Joey Hain
dcb29ab1f0 Add list.__iadd__ 2019-02-17 10:54:25 -08:00
Calixte Denizet
5a154f9745 Fix list & tuple equality 2019-02-16 14:23:20 +01:00
Calixte Denizet
93c184a745 Fix fmt 2019-02-16 13:25:13 +01:00
Calixte Denizet
dd6b5b9aae Fix list_eq 2019-02-16 13:15:58 +01:00
Calixte Denizet
117c6c8494 Fix list_remove 2019-02-16 13:00:39 +01:00
Calixte Denizet
5d82e2c6b5 Fix equality check in list_count, list_index and list_contains 2019-02-16 12:45:57 +01:00
Windel Bouwman
159daf061a Change scope from using set_item to set_attr. 2019-02-16 11:18:55 +01:00
Windel Bouwman
163a1311f7 Merge pull request #470 from janczer/add_remove_list
Add remvoe to list object
2019-02-16 10:27:27 +01:00
Windel Bouwman
ec6dc7ca4a Merge pull request #481 from evilpie/discard
implement set.discard
2019-02-16 08:30:57 +01:00
Tom Schuster
4762d654b4 implement set.discard 2019-02-15 20:46:00 +01:00
janczer
c1f6d16079 Change iterator to for loop 2019-02-15 20:33:41 +01:00
silmeth
4a67bb9797 stop dividing the divisor if the remainder already disappeared 2019-02-15 20:08:28 +01:00
janczer
4726d6b8b0 Remove unwrap methods 2019-02-15 20:01:02 +01:00
silmeth
4cfd3a1cd0 get rid of unnecessary muts in objint::div_ints 2019-02-15 19:50:25 +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
silmeth
8ed82a089f make big ints dividable if the result fits in a float 2019-02-15 19:43:00 +01:00
silmeth
0c626dd595 rename objstr::get_value_as_ref to objstr::borrow_value 2019-02-15 19:29:58 +01:00
Windel Bouwman
2d22a882ae Merge pull request #475 from palaviv/Add-set-funcs3
Add set.{union,intersection,difference,symmetric_difference}
2019-02-15 17:08:10 +01:00
Windel Bouwman
b785960a25 Merge pull request #461 from adrian17/arg_check_refactor
Refactor arg_check macro
2019-02-15 16:59:09 +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
2ac195e539 List remove, handle non exist element. Add new test 2019-02-15 08:49:58 +01:00
Windel Bouwman
48032a5110 Merge pull request #472 from OddCoincidence/int-float-rarithmetic
Add {int,float}.{__radd__,__rsub__,__rmul__,__rtruediv__}
2019-02-15 07:14:01 +01:00
Windel Bouwman
a2d4924909 Merge pull request #469 from janczer/fix_typos
Fix typos
2019-02-15 07:03:04 +01:00
Joey Hain
c6ac393f84 Add {int,float}.{__radd__,__rsub__,__rmul__,__rtruediv__} 2019-02-14 21:21:30 -08:00
janczer
358f9f764b Add remvoe to list object 2019-02-14 21:18:38 +01:00
janczer
89e947a04f Fix typos 2019-02-14 20:38:18 +01:00
janczer
2a2ddff14e Add complex methods real and imag 2019-02-14 16:56:32 +01:00
Windel Bouwman
d048d0a0da Merge pull request #445 from RustPython/co_consts
Co consts
2019-02-13 22:59:53 +01:00