Commit Graph

5899 Commits

Author SHA1 Message Date
lynskylate
8a6ac64f03 Introduce symtable test and add is_annotation for symbol 2020-07-31 02:11:00 +08:00
Jeong YunWon
8a35c8ff3e Merge pull request #2009 from ohgree/test/future
Added CPython 3.8.3's test___future__.py.
2020-07-18 07:35:03 +09:00
Minjun Shin
7169541232 Added CPython 3.8.3's test___future__.py.
Works perfectly fine, out of the box
2020-07-18 05:51:14 +09:00
Jeong YunWon
2d31f4e7c8 Merge pull request #2001 from RustPython/coolreader18/update-pwd
Update the pwd module
2020-07-17 15:47:04 +09:00
Noah
5401b2dd32 Merge pull request #2003 from qodot/impl-array-cmp
Implement lt, le, gt, ge method of array
2020-07-16 20:54:51 -05:00
Noah
a8f7f4bd05 Merge pull request #1976 from TheAnyKey/TheAnyKey/VSCode_Gitpod_Debuging
Config files for debugging and launch for VS Code and Gitpod
2020-07-16 20:47:48 -05:00
qodot
40a5e64bf8 Fix rustfmt and clippy
followed message,
- using `Result.or_else(|x| Err(y))`, which is more succinctly expressed as `map_err(|x| y)`
2020-07-17 10:18:23 +09:00
Noah
b585a6a930 Merge pull request #1998 from RustPython/coolreader18/zlib-compressobj
Add zlib.compressobj()
2020-07-16 15:05:24 -05:00
qodot
72a78ff542 Implement lt, le, gt, ge method of array 2020-07-16 22:58:54 +09:00
Noah
5e86f91fe9 Add test_pwd.py from CPython 3.8.2 2020-07-15 12:55:15 -05:00
Noah
a9a5f06623 Rewrite the pwd module to use nix instead of the pwd crate 2020-07-15 12:54:51 -05:00
Noah
e30e2cd278 Update some num-* crates 2020-07-15 12:53:57 -05:00
Jeong YunWon
12f72ba9f1 Merge pull request #1997 from RustPython/coolreader18/fix-caching
Try fixing caching
2020-07-15 14:13:55 +09:00
Noah
dd4abd082e Add zlib.compressobj() 2020-07-14 21:24:49 -05:00
Noah
3c241cd91e Allow struct.pack to take a bytes spec 2020-07-14 21:24:41 -05:00
Noah
50ffa8ff10 fp.read(0) == b'', not read_full 2020-07-14 21:24:23 -05:00
Noah
1ec179b118 Try fixing caching; update to cache@v2 2020-07-14 19:56:15 -05:00
Noah
0ab0a0a4a2 Merge pull request #1981 from skinny121/class-assign
Support assigning to __class__
2020-07-14 19:37:45 -05:00
Noah
6d383b6148 Fix fmt 2020-07-14 11:20:42 -05:00
Noah
55a95660c0 Merge branch 'master' into class-assign 2020-07-14 11:18:12 -05:00
Yiqun Ling
6b361bb409 Set annotation for function args 2020-07-14 18:58:58 +09:00
Jeong YunWon
b6532d4c0c Merge pull request #1995 from skinny121/fraction
Add fractions.py
2020-07-14 18:17:50 +09:00
Jeong YunWon
6ccdbaf979 Merge pull request #1993 from youknowone/compile-error-source-path
CompilerError always contains source_path
2020-07-14 18:11:02 +09:00
Ben Lewis
1e0152d309 Mark failing test_fractions.py tests as expected failures. 2020-07-14 20:25:01 +12:00
Ben Lewis
e0eef3d93c Set name and module for functions declared with #[pyfunction]. 2020-07-14 20:20:27 +12:00
Ben Lewis
0ac4f3a642 Change builtins module to use pymodule proc macro. 2020-07-14 20:08:17 +12:00
Ben Lewis
5dc2ebc556 Add fractions.py and test_fractions.py from CPython 3.8.3. 2020-07-14 19:05:21 +12:00
Jeong YunWon
1c0925b4d9 CompilerError always contains source_path 2020-07-14 13:48:39 +09:00
Noah
133b9f3375 Merge pull request #1994 from BasixKOR/not-impl-gen-utf8
Fix file reading failure in non-ascii path on `not_impl_gen.py`
2020-07-13 19:17:12 -05:00
Basix
94fa757479 Fix typo
Co-authored-by: Noah <33094578+coolreader18@users.noreply.github.com>
2020-07-14 08:30:23 +09:00
Basix
4354d0b98a Fix file reading failure in non-ascii path 2020-07-13 23:44:37 +09:00
Ben Lewis
c7094c5a8d Replace ArcSwap with RwLock for PyObject.dict as there is no significant performance difference. 2020-07-13 19:36:48 +12:00
Ben Lewis
f5daba7f83 Fix clippy warning. 2020-07-12 18:19:48 +12:00
Ben Lewis
fef545fa20 Fix test hanging. 2020-07-12 17:59:48 +12:00
Ben Lewis
16bd28ae18 Cleanup usage of lease_class() 2020-07-12 09:12:42 +12:00
Ben Lewis
f4876fc104 Replace ArcSwap by RwLock. 2020-07-12 09:12:42 +12:00
Ben Lewis
c32ea4f497 Add doc comment to PyLease. 2020-07-12 09:12:41 +12:00
Ben Lewis
4b19d356a3 Rustfmt 2020-07-12 09:12:41 +12:00
Ben Lewis
4f34825333 Move has_attr/get_attr to PyClass to avoid some cloning of Arcs. 2020-07-12 09:12:41 +12:00
Ben Lewis
fe347370c6 Avoid cloning within isinstance/issubclass calls. 2020-07-12 09:12:41 +12:00
Ben Lewis
82f79b5c3f Remove typ() and replace lease_class(). 2020-07-12 09:12:41 +12:00
Ben Lewis
0cd78fbc88 Replace more usages of .class() with .lease_class(). 2020-07-12 09:12:41 +12:00
Ben Lewis
f075cac003 Introduce PyLease, a 'borrow' of an atomic Arc. 2020-07-12 09:12:41 +12:00
Ben Lewis
ac3d81f1ca Add issue reference to FIXME comment. 2020-07-12 09:12:41 +12:00
Ben Lewis
f5f916f365 Support assigning to __class__. 2020-07-12 09:12:41 +12:00
Noah
9fa294e958 Merge pull request #1982 from RustPython/coolreader18/wasm-_thread
Fix issues with wasm code missing _thread
2020-07-11 08:20:27 -05:00
Jeong YunWon
f77e8d8b69 Merge pull request #1990 from RustPython/coolreader18/terminal-size
Implement os.get_terminal_size
2020-07-11 16:03:55 +09:00
Jeong YunWon
28b91d93bb Skip more test_shutil.py for macOS 2020-07-11 14:51:06 +09:00
Noah
1ebb5ceacd Add os._fcopyfile on macos 2020-07-11 13:50:37 +09:00
Noah
55e273fe7e Overhaul PyPathLike/OutputMode a *tiny* bit 2020-07-10 15:36:56 -05:00