Commit Graph

1186 Commits

Author SHA1 Message Date
Jeong YunWon
87e500a07b Merge pull request #2021 from RustPython/fix-mingw
Fix compilation on mingw/msys
2020-07-23 02:55:23 +09:00
Noah
d52309255e Fix compilation on mingw/msys 2020-07-21 17:00:12 -05:00
Jeong YunWon
b677b88bdd sequence::cmp take DynPyIter instead of SimpleSeq
to avoid duplicated code generation for Box operation
2020-07-21 21:48:46 +09:00
Jeong YunWon
f40b19927f Simplify SimpleSeq 2020-07-20 05:57:06 +09:00
clemado1
53a116f9f1 Implement remove method of array 2020-07-19 16:31:07 +09:00
Jeong YunWon
0c11b8bf67 Merge pull request #1963 from palaviv/cpython-tests
Add CPython import tests
2020-07-19 03:00:31 +09:00
Jeong YunWon
d71dc69577 Merge pull request #2007 from youknowone/test-zlib
test_zlib.py
2020-07-19 02:54:56 +09:00
Aviv Palivoda
4ba6b476aa Wrap unlock in unsfae 2020-07-18 17:26:05 +03:00
Aviv Palivoda
eba1d722ea Remove global import lock in WASM 2020-07-18 17:04:35 +03:00
Aviv Palivoda
f970f4fabc Add global import lock 2020-07-18 17:04:35 +03:00
Aviv Palivoda
d14f796b1a Raise error if sys.module value is None 2020-07-18 17:04:35 +03:00
Jeong YunWon
112aef87ed Merge pull request #2000 from RustPython/coolreader18/fix-wasi
Fix compilation on wasi
2020-07-18 21:23:03 +09:00
Jeong YunWon
915078e32f mark failing tests 2020-07-18 20:58:59 +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
c4378eb275 Fix compilation on wasi 2020-07-16 20:59:16 -05: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
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
a9a5f06623 Rewrite the pwd module to use nix instead of the pwd crate 2020-07-15 12:54:51 -05: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
55a95660c0 Merge branch 'master' into class-assign 2020-07-14 11:18:12 -05:00
Jeong YunWon
1c0925b4d9 CompilerError always contains source_path 2020-07-14 13:48:39 +09: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
0cd78fbc88 Replace more usages of .class() with .lease_class(). 2020-07-12 09:12:41 +12: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
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
Noah
491ca575b2 Implement os.utime() and fix some other things 2020-07-10 12:36:09 -05:00
Noah
6b6c4da511 Add pyarg(flatten) 2020-07-10 12:09:36 -05:00
Noah
e60a63d4fb Add some more methods to io classes 2020-07-10 12:09:32 -05:00
Noah
cd64884180 Implement os.get_terminal_size 2020-07-10 12:09:31 -05:00
coolreader18
4751c25a6d Fix compilation on android 2020-07-09 21:48:42 -05:00
Jeong YunWon
838abb8b76 Add collections.deque.__contains__ 2020-07-08 03:30:40 +09:00
Noah
ebab829f60 Switch to using parking_lot::Mutex instead of std::sync::Mutex 2020-07-04 22:58:18 -05:00
Ben Lewis
58ae89969f Fix str.isspace to support unicode space characters. 2020-07-04 11:20:33 +12:00
Noah
e06641dbe1 Fix all the weird Windows bugs 2020-06-22 04:10:44 -05:00
Noah
a7131ee46b Add _sysconfigdata_* 2020-06-21 16:47:42 -05:00
Noah
260d6f2be3 Try to fix weird windows error? 2020-06-21 16:47:42 -05:00
Noah
06a4796711 Add msvcrt.open_osfhandle 2020-06-21 16:47:42 -05:00
Noah
791d171cd6 Remove the rust _subprocess module 2020-06-21 16:47:41 -05:00
Noah
1fa4a0edad Add _winapi functions for subprocess 2020-06-21 16:47:41 -05:00
Noah
325706d86c Add _posixsubprocess 2020-06-21 16:47:39 -05:00
Noah
f40c3d4ab1 Fix thread.rs 2020-06-21 15:39:13 -05:00
Jeong YunWon
437a81996f Merge pull request #1970 from youknowone/sub-1962
non-subprocess stuff from #1962
2020-06-22 03:57:47 +09:00
Noah
ca7d9b625a Fix error with latest parking_lot version 2020-06-21 11:45:26 -05:00
Noah
ec1c9f9410 Add os.kill 2020-06-21 21:05:23 +09:00