Commit Graph

667 Commits

Author SHA1 Message Date
Aviv Palivoda
08f2a5705b Add prints for windows debug 2019-04-19 14:40:01 +03:00
Aviv Palivoda
00e46b7d72 Try to fix windows test 2019-04-19 13:50:34 +03:00
Aviv Palivoda
abb9cde62c Use temp dir for os test 2019-04-19 12:23:45 +03:00
Aviv Palivoda
a75e7635d5 Add os.sep 2019-04-19 12:09:11 +03:00
Adam
615a121200 Merge pull request #841 from RustPython/mutual-import
Support mutual importing modules.
2019-04-17 15:09:23 +01:00
Windel Bouwman
240c1e42db Merge pull request #839 from RustPython/nonlocal
Add nonlocal support.
2019-04-17 14:02:04 +02:00
Windel Bouwman
06563a36f6 Support mutual importing modules. 2019-04-17 12:33:09 +02:00
Windel Bouwman
75e8f81e77 Merge pull request #767 from skinny121/slice_new
Refactor slice.__new__ to new style function
2019-04-17 12:11:04 +02:00
ben
f2873a519d Merge branch 'master' into slice_new
# Conflicts:
#	tests/snippets/builtin_slice.py
#	vm/src/frame.rs
#	vm/src/obj/objrange.rs
#	vm/src/obj/objslice.rs
2019-04-17 19:44:46 +12:00
coolreader18
11bf84e8c1 Fix test again 2019-04-16 22:01:09 -05:00
coolreader18
96d6c518e9 Fix os.unsetenv test for windows 2019-04-16 19:40:01 -05:00
Windel Bouwman
6abf1511e9 Add nonlocal support. 2019-04-16 17:19:57 +02:00
Windel Bouwman
78db5ea311 Merge pull request #835 from RustPython/coolreader18/weakproxy
Add weakproxy
2019-04-15 17:35:04 +02:00
Adam Kelly
c9b479c43b Guard for changes in dictionary size during iteration. 2019-04-15 13:25:04 +01:00
coolreader18
1612c954a1 Add weakproxy test 2019-04-14 20:14:54 -05:00
Aviv Palivoda
4068a36ce8 Use assertRaises 2019-04-14 20:38:34 +03:00
Aviv Palivoda
b6ce407391 Remove else and finally from in_exc_handler 2019-04-14 19:06:21 +03:00
Aviv Palivoda
188758929d Add more tests to exception context 2019-04-14 18:54:43 +03:00
Aviv Palivoda
3ec9b01928 Add exception __context__ 2019-04-14 18:54:43 +03:00
Aviv Palivoda
2c2925a684 Support reraise 2019-04-14 18:54:43 +03:00
Windel Bouwman
733d3a1d1f Merge master branch 2019-04-13 12:51:55 +02:00
Windel Bouwman
be4e3170af Merge pull request #822 from jgirardet/addbytesm
add capitalize bytes.center + fix str.center
2019-04-13 12:41:35 +02:00
Adam
78ab68a64e Merge pull request #817 from skinny121/function_metadata
Add __name__, __qualname__ and __module__ to functions and classes
2019-04-13 09:44:33 +01:00
jgirardet
73dbcfbe01 Add bytes.center
fix str.center
add some tests
introduce is_byte
2019-04-13 08:23:40 +02:00
jgirardet
bd78f7e12b add capitalize 2019-04-13 08:21:37 +02:00
coolreader18
2c887905a1 Merge pull request #766 from jgirardet/seq
Fix #746: invalid slice with start or stop =-1 when step<0
2019-04-12 16:41:36 -05:00
coolreader18
22203975fa Merge pull request #821 from palaviv/excpetion-cause
Add exception cause
2019-04-12 16:08:54 -05:00
Aviv Palivoda
20e0cc8bd7 Use assertRaises 2019-04-12 23:06:53 +03:00
Windel Bouwman
76659fd985 Merge pull request #820 from skinny121/gen_throw
Implement generator.throw
2019-04-12 19:38:54 +02:00
Windel Bouwman
456c8a19ce Merge pull request #819 from palaviv/os-env
Add os.environ
2019-04-12 19:33:33 +02:00
Windel Bouwman
76c597f2af Add global bytecode and testcase. 2019-04-12 19:24:23 +02:00
ben
63643e1fdb Implement generator.throw 2019-04-12 20:30:37 +12:00
Aviv Palivoda
6c4b092641 Support exception __cause__ 2019-04-12 10:50:45 +03:00
Aviv Palivoda
4293b11429 Add environ class 2019-04-11 18:55:53 +03:00
Adam Kelly
664554bc5e Fix dir bug - not including object attributes correctly. 2019-04-11 15:35:01 +01:00
ben
2164cb5e65 Produce correct value for __qualname__ and add attributes to class. 2019-04-11 20:13:23 +12:00
ben
84eff4a7ac Add __name__ and __module__ to functions 2019-04-11 20:13:23 +12:00
Adam Kelly
b70f989952 dict equality - objects always equal themselves. 2019-04-11 08:39:03 +01:00
Adam Kelly
bd5772d914 Implement dict.__eq__ 2019-04-11 08:31:13 +01: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