Commit Graph

2446 Commits

Author SHA1 Message Date
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
Adrian Wielgosik
585e6e5428 Drop IntoPyNativeFunc impl to fix Nightly/Beta breakages. 2019-04-12 19:28:09 +02:00
Windel Bouwman
76c597f2af Add global bytecode and testcase. 2019-04-12 19:24:23 +02:00
Adam
785854ac9e Merge pull request #818 from RustPython/dir_str_bug
Fix dir bug - not including object attributes correctly.
2019-04-12 15:26:49 +01:00
Aviv Palivoda
908f758cbe Print cause on exception 2019-04-12 15:50:17 +03:00
Adam Kelly
80ec464d84 Use dict.update to combine class and object attrs in object_dir. 2019-04-12 12:25:19 +01: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
Windel Bouwman
28cf4c0010 Symbol role scan fully covered. 2019-04-11 22:18:29 +02:00
Aviv Palivoda
b293956258 Use original _Environ as much as possible 2019-04-11 19:15:37 +03:00
Aviv Palivoda
1272829793 Comment unsupported code from _collections_abc.py 2019-04-11 19:03:08 +03:00
Aviv Palivoda
eb40e08d8a Add _collections_abc.py from CPython 2019-04-11 19:02:04 +03:00
Aviv Palivoda
69e49e6cba Simplify os.py 2019-04-11 18:55:53 +03:00
Aviv Palivoda
4293b11429 Add environ class 2019-04-11 18:55:53 +03:00
Aviv Palivoda
c33593efa9 Remove getenv and add environ 2019-04-11 18:55:53 +03:00
Aviv Palivoda
951659a54d Add os.unsetenv 2019-04-11 18:55:53 +03:00
Aviv Palivoda
9b475a2c41 Add os.putenv 2019-04-11 18:55:53 +03:00
Aviv Palivoda
72467069be Add os.getenv 2019-04-11 18:55:53 +03:00
Adam
42a3b7a75c Merge pull request #815 from RustPython/refactor_ast
Refactor ast.
2019-04-11 16:43:19 +01:00
Adam Kelly
8569145751 Define classes for all the ast types. 2019-04-11 16:41:47 +01:00
Adam Kelly
8a14665575 Ast refactor: Everything can fail. 2019-04-11 16:41:44 +01:00
Adam Kelly
d7e0ceec12 New (PyRef<T>) style types. 2019-04-11 16:40:54 +01:00
Adam Kelly
aa38a1aa51 Start refactor of ast. 2019-04-11 16:40:49 +01:00