Commit Graph

6043 Commits

Author SHA1 Message Date
Minjun Shin
e20a7673e3 os.execv implementation for unix systems
Uses nix::unistd::execv for implementation.
2020-07-29 13:09:27 +09:00
Noah
fa2d6175c5 Fix flat_option->flatten merge 😬 2020-07-28 13:16:05 -05:00
Noah
a7d81f76ba Merge pull request #2038 from youknowone/flatten
flat_option -> flatten
2020-07-28 13:08:07 -05:00
Jeong YunWon
1a653562b8 flat_option -> flatten
by following std::option::Option
2020-07-29 02:05:48 +09:00
Jeong YunWon
99a9dafecc Merge pull request #2033 from RustPython/coolreader18/no-freeze-workspace
Don't put the freeze example as a workspace member
2020-07-28 18:58:52 +09:00
Jeong YunWon
1aa17c8013 Merge pull request #1999 from skinny121/groupby
Add itertools.groupby
2020-07-28 18:57:43 +09:00
Noah
2f77be17d8 Don't put the freeze example as a workspace member 2020-07-27 18:47:09 -05:00
Noah
0221b460b1 Merge pull request #2032 from ohgree/typo
os.rs - Minor typo fix for panic! macro
2020-07-27 16:57:38 -05:00
Minjun Shin
03e7825ace Minor typo fix for panic! macro 2020-07-28 06:13:51 +09:00
Noah
543104d915 Merge pull request #2023 from youknowone/pystr
cleaning up str/bytes and bytesinner/byteslike
2020-07-27 09:01:40 -05:00
Ben Lewis
73a2b74a06 Code review changes. 2020-07-27 12:43:06 +12:00
Ben Lewis
020c4c9fd6 Un-mark test_new_style_iter_class, as it now passes. 2020-07-27 12:42:44 +12:00
Ben Lewis
2d6a1af8e2 Fix/mark itertools tests. 2020-07-27 12:42:44 +12:00
Ben Lewis
611b4b4907 Add test_itertools.py from CPython 3.8.3. 2020-07-27 12:39:33 +12:00
Ben Lewis
c74eb6c9a2 Implement itertools.groupby 2020-07-27 12:39:33 +12:00
Jeong YunWon
3bc7141564 Merge pull request #2029 from RustPython/coolreader18/update-deps
Update dependencies
2020-07-27 07:37:18 +09:00
Jeong YunWon
81d4bc7f9f PyMemoryView::try_bytes take closure instead of returning vec 2020-07-27 05:45:34 +09:00
Jeong YunWon
28216a8935 try_as_bytes take closure instead of returning vec 2020-07-27 05:40:25 +09:00
Jeong YunWon
8e2a268c35 Use PyBytesLike rather than PyBytesInner 2020-07-27 16:00:03 +09:00
Jeong YunWon
c07d3f09cd obj::pystr -> pystr 2020-07-27 08:38:57 +09:00
Jeong YunWon
84b5475d4c obj::objbyteinner::PyByteInner -> bytesinner::PyBytesInner 2020-07-27 08:38:53 +09:00
Jeong YunWon
50757499e5 InnerDict -> DictInner for naming convention 2020-07-27 08:29:18 +09:00
Jeong YunWon
aaf95bb7fb Remove unused ByteInnerSplitlinesOptions 2020-07-27 08:29:18 +09:00
Jeong YunWon
58bfd1d221 {str,bytes}.partition into pystr 2020-07-27 08:29:18 +09:00
Jeong YunWon
6d26cfa20a Clean up str/bytes pad
to be prefixed with _ and embed get_fillchar
2020-07-27 08:29:18 +09:00
Jeong YunWon
e420db65fe PySliceableSequence for PyString reuse len cache 2020-07-27 08:29:18 +09:00
Jeong YunWon
8ea113608b zfill to common 2020-07-27 08:29:18 +09:00
Jeong YunWon
2d01cffbf9 common::str::get_chars with test 2020-07-27 08:29:15 +09:00
Noah
2bc2d1721e Update itertools 2020-07-26 15:21:39 -05:00
Noah
fcad7e0091 Use lz4-compression instead of lz4-compress 2020-07-26 15:21:39 -05:00
Noah
ab232e6cd8 Use lexical-core instead of lexical 2020-07-26 15:21:38 -05:00
Noah
861532990d Update lalrpop 2020-07-26 15:21:38 -05:00
Noah
a1de3a5483 Update flamer + flame some more functions 2020-07-26 15:21:25 -05:00
Jeong YunWon
1fd87879aa Merge pull request #2002 from BasixKOR/sys-getwindowsversion
Implement `sys.getwindowsversion`
2020-07-26 22:12:40 +09:00
Jeong YunWon
75b91087cd Merge pull request #2018 from RustPython/coolreader18/common-crate
Move a few non-python specific functions into a 'common' crate, make threading optional
2020-07-26 22:03:59 +09:00
hyperbora
19326d8411 fix a divmod bug (#2025) 2020-07-26 21:37:49 +09:00
Basix
240a31e112 Use module parameter for WindowsVersion 2020-07-26 17:11:20 +09:00
Basix
1505c9a88e Add tests 2020-07-26 17:08:31 +09:00
Basix
ac57b5225d Rename getwindowsversion_type 2020-07-26 17:07:05 +09:00
Basix
0cc085b3a5 Fix code style 2020-07-26 17:06:25 +09:00
Basix
d4d4f7a398 Add getwindowsversion in sys module
Compatibility note:
The return type of this function has a different name from CPython.
2020-07-26 17:06:24 +09:00
Basix
9bafa29969 Fix handling of null-terminated string 2020-07-26 17:06:24 +09:00
Basix
ab926d17f4 Implement sys.getwindowsversion 2020-07-26 17:06:24 +09:00
Noah
1527184c16 Merge pull request #2026 from BolunThompson/absolute_sys_executable
Fixed bug where sys.executable returned an absolute path instead of a relative path
2020-07-25 21:04:13 -04:00
Bolun Thompson
84aa0e094a avoid unnecessary cloning 2020-07-25 14:33:41 -07:00
coolreader18
126beb75e0 Add no-threading compilation check to rust_tests 2020-07-25 15:29:48 -04:00
Noah
76df8773e7 Use PyRc in rustpython_wasm 2020-07-25 15:22:03 -04:00
Noah
642a1ee7ee Disable the threading feature for rustpython-wasm 2020-07-25 15:22:03 -04:00
Noah
3647568ac5 Make threading optional 2020-07-25 15:22:03 -04:00
Noah
39303f0567 Transition more files to use PyMutex/PyRwLock 2020-07-25 15:22:03 -04:00