Commit Graph

2468 Commits

Author SHA1 Message Date
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
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
coolreader18
8f3319e01d Merge pull request #827 from RustPython/joey/titlecase
str: improve {is,}title impl and add tests
2019-04-13 22:59:04 -04:00
Joey
762c281dd4 address feedback 2019-04-13 19:07:15 -07:00
ben
a708ce2eb2 Remove needless format! 2019-04-14 12:15:55 +12:00
ben
d24dd170e9 Changes to RustPython to support importing and running unittest 2019-04-14 12:09:54 +12:00
coolreader18
c0d328ad18 Merge pull request #828 from skinny121/rust_1_34_update
Update code format and fix some clippy warnings
2019-04-13 19:20:06 -04:00
ben
6650ad895a Fix a bunch of clippy warnings 2019-04-14 10:07:50 +12:00
ben
1f8181b561 Update formatting to be consistent with rustfmt included in 1.34 2019-04-14 09:40:59 +12:00
Joey
8839461028 str: improve {is,}title impl and add tests 2019-04-13 12:45:09 -07:00
coolreader18
56765681f8 Merge pull request #826 from RustPython/joey/fix-compile
Fix sub-crate compilation
2019-04-13 14:21:26 -05:00
Joey
16644daffa Fix sub-crate compilation 2019-04-13 12:04:37 -07: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
Windel Bouwman
83ea419c63 Add load and store of global to name protocol. 2019-04-13 11:55:10 +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
256abe63b6 Use vm.new_type_error 2019-04-12 23:08:26 +03:00
Aviv Palivoda
20e0cc8bd7 Use assertRaises 2019-04-12 23:06:53 +03:00
coolreader18
a91cfd16bf Fix WASM import error 2019-04-12 14:28:26 -04:00
coolreader18
774b0d8e45 Merge pull request #823 from adrian17/remove-impl
Drop IntoPyNativeFunc impl to fix Nightly/Beta breakages.
2019-04-12 13:27:06 -05: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