Commit Graph

2496 Commits

Author SHA1 Message Date
Jimmy Girardet
8a7c46da7b add endswith startswith 2019-04-18 14:15:13 +02:00
Jimmy Girardet
14658b6236 move is_byte to try_as_byte
move trait IsByte to ByteOr
refactor center
refactor count
fix center with negative value
add test for count(integer)
2019-04-18 14:15:13 +02:00
jgirardet
5f5d5c4278 add bytes.join 2019-04-18 14:15:13 +02:00
jgirardet
e6d6b77698 fix error msg 2019-04-18 14:15:13 +02:00
jgirardet
00cf524814 add slice capability to bytes. add trait IsByte 2019-04-18 14:15:13 +02:00
jgirardet
c550360be5 add is_bytes_like add bytes.count wthout slice 2019-04-18 14:15:13 +02:00
Windel Bouwman
319bb807fb Merge pull request #843 from jgirardet/parsenew
support bytes creation from hex and ascii
2019-04-18 08:35:45 +02:00
jgirardet
eb2d0b01ee refactor lex byte 2019-04-18 08:06:06 +02:00
Windel Bouwman
ae7058ffa8 Merge pull request #842 from RustPython/benchmarking
Add some benchmark scripts.
2019-04-18 07:05:25 +02:00
Windel Bouwman
6cf7f79dd4 Merge pull request #844 from RustPython/improve-syntax-error
Improve syntax error with line information.
2019-04-18 07:03:40 +02:00
Windel Bouwman
b34784e9ef Format main.rs 2019-04-17 20:52:53 +02:00
Windel Bouwman
eb16f16566 Improve syntax error with line information. 2019-04-17 20:02:24 +02:00
Adam
615a121200 Merge pull request #841 from RustPython/mutual-import
Support mutual importing modules.
2019-04-17 15:09:23 +01:00
Jimmy Girardet
9c57ae4046 support bytes creation from hex and ascii 2019-04-17 15:28:14 +02:00
Windel Bouwman
84457e6e92 Add some benchmark scripts. 2019-04-17 15:04:50 +02:00
Windel Bouwman
2a8b586622 Fix caching of rust modules. 2019-04-17 14:03:18 +02:00
Windel Bouwman
240c1e42db Merge pull request #839 from RustPython/nonlocal
Add nonlocal support.
2019-04-17 14:02:04 +02:00
Windel Bouwman
6d1b807c77 Improve error message of unwrap operation on nonlocal scope. 2019-04-17 12:59:56 +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
Windel Bouwman
780ee8a767 Merge pull request #840 from RustPython/coolreader18/fix-unsetenv-test
Fix os.unsetenv test for windows
2019-04-17 12:08:02 +02:00
ben
9b71424d4e Use slice.xxx_index() methods in setslice and delslice 2019-04-17 20:02:08 +12: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
coolreader18
d7275c7712 Merge pull request #837 from skinny121/main_rs_cleanup
Use new_syntax_error in main.rs
2019-04-16 06:58:18 -05:00
coolreader18
827f830d09 Merge pull request #836 from RustPython/coolreader18/no-proc-macro-hack
Remove the __inside_vm hack for procedural macros
2019-04-16 06:51:44 -05:00
ben
224863583b Use new_syntax error in main.rs 2019-04-16 20:53:14 +12:00
coolreader18
08babef619 Remove the __inside_vm hack for procedural macros 2019-04-15 20:24:16 -05:00
Windel Bouwman
78db5ea311 Merge pull request #835 from RustPython/coolreader18/weakproxy
Add weakproxy
2019-04-15 17:35:04 +02:00
Adam
2c3f4b6de4 Merge pull request #816 from RustPython/dict_changed_during_iteration
Guard for changes in dictionary size during iteration.
2019-04-15 15:53:37 +01:00
Adam Kelly
dfbaf3cdf0 Remove pub from PyDict.entries (easy TODO) 2019-04-15 13:25:04 +01: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
coolreader18
cc76bf7a1f Add weakproxy class 2019-04-14 20:09:43 -05:00
coolreader18
5855baf4ec Merge pull request #834 from dkaste/rust-2018-macros
Make macros comply fully with Rust 2018
2019-04-14 17:06:45 -05:00
Darren Kaste
a8e064b1c0 Import TypeProtocol before use in type_check! 2019-04-14 17:19:44 -04:00
Darren Kaste
daaeb78831 Prefix helper macro calls with $crate 2019-04-14 17:08:35 -04:00
coolreader18
143e329f79 Merge pull request #831 from palaviv/exception-context
Exception reraise and context
2019-04-14 13:31:10 -05:00
Aviv Palivoda
2ffd1c9484 Fix typo 2019-04-14 20:39:28 +03: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
aec7f84960 Print exception context 2019-04-14 18:55:29 +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
51aa817a81 Merge pull request #829 from skinny121/unittest_rustpython
RustPython changes for #824
2019-04-14 10:49:21 +02:00
Windel Bouwman
71b6e2abf0 Merge pull request #806 from RustPython/symbol-table
Initial version of symbol table builder.
2019-04-14 10:44:43 +02:00
ben
307689a15e comment out lines that reference mappingproxy as type doesn't yet have a
__dict__
2019-04-14 19:10:10 +12:00