Commit Graph

1142 Commits

Author SHA1 Message Date
Adam Kelly
2ab90b234a Fix unused variable warning in objint. 2019-02-21 21:05:46 +00:00
Adam Kelly
2c97a50e6e sys - use py_module. 2019-02-21 21:05:00 +00:00
Adam Kelly
d420c7f400 dis - use py_module. 2019-02-21 21:04:42 +00:00
Windel Bouwman
7dd1eec936 Merge pull request #517 from palaviv/set-more-funcs
Add set.{pop,update,intersection_update,difference_update,symmetric_difference_update}
2019-02-21 20:53:41 +01:00
Windel Bouwman
565023f55b Merge pull request #518 from AdamGS/add_int_attributes
Added real/imag attributes to int type.
2019-02-21 20:52:06 +01:00
Windel Bouwman
5bd2db817f Merge pull request #516 from RustPython/joey/argcheck-objtype
Don't require objtype import to use arg_check! macro
2019-02-21 20:49:14 +01:00
Windel Bouwman
2c1afc4ef0 Merge pull request #513 from RustPython/py_module_macro
Py module macro
2019-02-21 20:47:35 +01:00
Windel Bouwman
1d3db316da Merge pull request #512 from RustPython/mod_dis
Mod dis
2019-02-21 20:44:27 +01:00
Adam Gutglick
0c1057f079 Added real/imag attributes to int type. 2019-02-21 13:46:18 -05:00
Aviv Palivoda
21b6616e8e Add set.symmetric_difference_update 2019-02-21 19:33:20 +02:00
Aviv Palivoda
1621d78326 Add set.difference_update 2019-02-21 19:02:05 +02:00
Aviv Palivoda
a4b814e9a7 Add set.intersection_update 2019-02-21 18:55:22 +02:00
Joey
eec76ef8e8 Don't require objtype import to use arg_check! macro 2019-02-21 08:38:02 -08:00
Aviv Palivoda
5f3664e87d Add set.update 2019-02-21 18:34:47 +02:00
Aviv Palivoda
a89b0593da Add set.pop 2019-02-21 18:34:47 +02:00
Joey
7e40b7f648 Compile error message cleanup 2019-02-21 08:27:35 -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
Adam Kelly
55148d7d5a Use py_module for random. 2019-02-21 14:06:57 +00:00
Adam Kelly
727b895930 Use py_module for math. 2019-02-21 14:06:57 +00:00
Adam Kelly
0175780cc3 py_module macro to make modules definitions more declarative. 2019-02-21 14:06:57 +00:00
Adam Kelly
5ebfd55b20 Add extremely minimal dis module. 2019-02-21 14:02:59 +00:00
Adam Kelly
4b03e6d706 Add Display implementation for CodeObject. 2019-02-21 14:02:59 +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
Windel Bouwman
e058179b04 Merge pull request #458 from ZapAnton/2018_edition
Migrated the project to the Rust 2018 edition
2019-02-20 16:44:31 +01:00
Windel Bouwman
a2ff87b9d7 Merge pull request #506 from janczer/add_check_byte_value
Add checking if value more then 255 in bytearraya
2019-02-20 16:14:09 +01:00
Windel Bouwman
b7dfbebd2d Merge pull request #500 from crw5996/break-continue-fix
Break continue fix
2019-02-20 16:12:57 +01:00
Windel Bouwman
32daf638dc Merge pull request #507 from rmliddle/develop
Readme Update + Inheritance Fix on IO
2019-02-20 16:05:39 +01:00
Joey
b8cb9f73c5 Merge branch 'master' into add_check_byte_value 2019-02-20 06:40:58 -08:00
Joey
f588f58dd1 Merge pull request #503 from janczer/add_pop_bytearray
Add pop to bytearray
2019-02-20 06:33:10 -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
Joey
9face190ab Fix continue statement 2019-02-19 19:40:34 -08:00
Joey
53bcd04f8a Merge pull request #499 from RustPython/break-from-nested-for-loops
Fix infinite loop when breaking from nested for loop
2019-02-19 18:33:11 -08:00
Joey
7c06cedf48 Merge pull request #504 from palaviv/fix-key-error
Add KeyError to builtins
2019-02-19 18:24:00 -08:00
chris
9092d1f30b Updated to fix corner case with inner function 2019-02-19 21:11:50 -05:00
chris
d3280429db Merge branch 'break-continue-fix' of https://github.com/crw5996/RustPython into break-continue-fix 2019-02-19 21:03:15 -05:00
chris
5b86b918f1 q!
Merge branch 'master' of https://github.com/RustPython/RustPython into break-continue-fix
2019-02-19 20:47:49 -05:00
Joey
cd8c1efb6b Merge pull request #494 from janczer/add_clear_dict_bytes
Add dict.clear and bytes.clear
2019-02-19 15:46:32 -08:00
Chris Wood
a451e4a5b3 Hopefully fixed rustfmt issues 2019-02-19 14:48:23 -05:00
Aviv Palivoda
218cec98cb Add KeyError to builtins 2019-02-19 21:38:39 +02:00
janczer
2963dd5b66 Change error to panic in bytearray.clear 2019-02-19 20:38:38 +01:00
rmliddle
724d9c6dcb Fixed Inheritance on String & BytesIO to reflect CPython 2019-02-19 20:41:43 +11:00
chris
0cc898e19d Updated Compilation phase to detect whether or not we are currently inside of a loop or not. This is useful to determine whether or not we can use looping specific keywords such as break or continue. 2019-02-19 02:18:52 -05:00
janczer
d5c91a8de0 Move clear method from bytes to bytearray 2019-02-19 07:11:13 +01:00
Joey Hain
7965a63ba9 Fix infinite loop when breaking from nested for loop 2019-02-18 18:07:35 -08:00
coolreader18
4edca2121d Convert some fetch options to kwargs, add PyFuncArgs method 2019-02-18 15:25:52 -06:00
Adrian Wielgosik
e016b68552 Document arg_check! macro a bit 2019-02-18 19:59:28 +01:00
janczer
58369b6fbc Delete unnessesary code from dict.clear 2019-02-18 18:45:49 +01:00