Noah
6e776da75d
Implement builtin_input
2020-02-29 12:02:36 -06:00
Noah
d3343b6de4
Add vm.new_runtime_error
2020-02-29 12:02:36 -06:00
Noah
645314b215
Move readline.rs into the vm crate
2020-02-29 12:02:36 -06:00
Noah
019036d724
Merge pull request #1767 from RustPython/coolreader18/windows-fd-from-handle
...
Fix writing to stdio streams on Windows
2020-02-29 11:55:45 -06:00
Noah
6b580c5921
Get regrtests working on Windows
2020-02-29 10:34:12 -06:00
Noah
db65c8d512
create_stdio in vm initialization
2020-02-29 10:34:12 -06:00
Noah
a70294de3b
Map 0,1,2 to io::{stdin,stdout,stderr}'s Windows handle
2020-02-29 10:33:21 -06:00
Noah
239e018eda
Merge pull request #1764 from IdanDor/feature/mro_resolution
...
Fixes to MRO usage and issue #1659
2020-02-29 10:08:02 -06:00
Idan Dor
6ea5d58f24
Fix previous merge of objtype.rs.
...
Moved the tests to their more correct place of `tests/snippets/class.py`.
2020-02-29 16:34:14 +02:00
Idan Dor
23e0467876
Merge remote-tracking branch 'remotes/upstream/master' into feature/mro_resolution
...
# Conflicts:
# vm/src/obj/objsuper.rs
# vm/src/obj/objtype.rs
2020-02-29 13:17:33 +02:00
Aviv Palivoda
e07ca66db4
Merge pull request #1772 from palaviv/set-fixes
...
Set fixes
2020-02-29 12:53:16 +02:00
Aviv Palivoda
69ba6cf887
Rename hash_iter_no_order to hash_iter_unordered
2020-02-29 09:40:16 +02:00
Noah
7be93a96da
Merge pull request #1766 from RustPython/coolreader18/stdlib-typing
...
Add the typing standard library module, rework tp_new
2020-02-28 22:50:07 -06:00
Noah
f604a660fd
Check RUST_BACKTRACE for vm.{unwrap,expect}_pyresult()
2020-02-28 21:31:56 -06:00
Noah
88405cf574
Merge pull request #1781 from philippeitis/patch-3
...
Raise TypeError when kwargs are not dict.
2020-02-28 15:05:29 -06:00
philippeitis
a6cc502fb9
Formatting.
2020-02-28 12:08:08 -08:00
philippeitis
294cbf1c7a
Raise TypeError when kwargs are not dict.
2020-02-28 11:54:35 -08:00
Noah
f2dc9f906e
Merge pull request #1774 from RustPython/coolreader18/_os-module-posix-nt
...
Change the name of the _os module to posix/nt
2020-02-28 07:06:05 -06:00
Aviv Palivoda
3d0c143425
Merge pull request #1773 from palaviv/more-tests
...
Add more CPython test
2020-02-28 09:48:25 +02:00
Noah
2227507f2b
Merge pull request #1777 from philippeitis/patch-1
...
Update f-string errors, handle != in f-string.
2020-02-27 15:52:02 -06:00
philippeitis
e037e37018
Simplify code, have errors match CPython implementation.
2020-02-27 11:34:55 -08:00
Noah
bd6a6cefb8
Merge pull request #1763 from youknowone/exceptions
...
Add missing exceptions
2020-02-27 12:12:34 -06:00
philippeitis
a21a2d4773
Handle != in f-string braces, raise EmptyExpression when expected.
2020-02-26 21:09:25 -08:00
philippeitis
3b74e780ec
Add ExpectedRbrace error, fix error messages.
2020-02-26 21:07:46 -08:00
Jeong YunWon
341ba1e2f8
Reorder exceptions by exception_hierarachy.txt
2020-02-26 08:38:52 +00:00
Jeong YunWon
7bb530dd89
Fix exception repr
2020-02-26 08:15:29 +00:00
Jeong YunWon
378a36c7e1
Add missing exceptions
2020-02-26 08:15:21 +00:00
Noah
959b0b9e62
Don't try to import winreg in importlib._bootstrap_external
2020-02-24 22:31:49 +00:00
Noah
fa7524d0b9
Change the name of the _os module to posix/nt
2020-02-24 22:11:08 +00:00
Idan Dor
cb24114444
Fixed clippy suggestion.
2020-02-22 16:43:00 +02:00
Idan Dor
8b80707cf8
Fixes according to PR review and added tests:
...
Moved mro creation from super getattribute to super constructor.
Removed optional VM argument in new class construction and changed the function to return String which is later "unwrapped" if a vm is available.
Added the relevant tests to `types_snippet.py`.
2020-02-22 16:10:49 +02:00
Aviv Palivoda
7c3b4c3802
Mark unsupported tests
2020-02-22 14:32:22 +02:00
Aviv Palivoda
af933f8ba5
Add test_contains from CPython 3.8
2020-02-22 14:31:12 +02:00
Aviv Palivoda
1d29858c04
Mark unsupported tests
2020-02-22 14:25:25 +02:00
Aviv Palivoda
1129c9d59a
Add test_class from CPython 3.8
2020-02-22 14:25:03 +02:00
Aviv Palivoda
5275ef6e3a
Mark unsupported tests
2020-02-22 14:11:50 +02:00
Aviv Palivoda
0e2ccf36fc
Add test_with from CPython 3.8
2020-02-22 14:10:06 +02:00
Aviv Palivoda
e1e95ffc1a
Mark unsupported tests
2020-02-22 14:08:18 +02:00
Aviv Palivoda
87e1084161
Add test_tuple from CPython 3.8
2020-02-22 14:02:19 +02:00
Aviv Palivoda
3db197c4b1
Fix set intersection_update
2020-02-22 12:59:48 +02:00
Aviv Palivoda
84250294b0
Fix frozenset hash
2020-02-22 12:36:27 +02:00
Aviv Palivoda
be9d8a4a56
Fix symmetric_difference
2020-02-22 11:22:01 +02:00
Aviv Palivoda
f21e35c31a
Merge pull request #1771 from palaviv/set-tests
...
Add CPython Set tests and support Args in methods
2020-02-22 10:01:02 +02:00
Noah
15163acdaa
Merge pull request #1769 from RustPython/coolreader18/struct-class
...
Reorganize struct module, add struct.Struct
2020-02-21 13:05:02 -06:00
Aviv Palivoda
fb7a2ce686
Mark unsupported tests
2020-02-21 11:12:50 +02:00
Windel Bouwman
90b862258b
Merge pull request #1765 from youknowone/allow-star-exp
...
Allow star expression for list elements
2020-02-21 10:07:21 +01:00
Noah
82d683730c
Misc changes
2020-02-20 23:53:19 -06:00
Noah
7f6cdc68c4
Add struct.Struct.size property
2020-02-20 23:08:37 -06:00
Noah
e1b63bdd4a
Add struct.Struct test
2020-02-20 22:33:33 -06:00
Noah
0dcb4d4b2e
Reorganize struct module, add struct.Struct
2020-02-20 22:33:25 -06:00