Jeong YunWon
8dccb60419
Merge pull request #2041 from youknowone/os-module
...
Reorganize os module
2020-08-01 23:59:11 +09:00
Noah
b31dd64434
Merge pull request #2049 from BasixKOR/msvcrt-undocumented
...
Implement msvcrt.SetErrorMode
2020-08-01 00:35:07 -05:00
Noah
a0e940f839
Merge pull request #2051 from BolunThompson/stderr_exceptions
...
Write exceptions to stderr instead of stdout
2020-08-01 00:28:11 -05:00
Noah
3e30f83af6
Merge pull request #2052 from BolunThompson/venv
...
Add venv module
2020-07-31 23:41:09 -05:00
Bolun Thompson
22dc98091b
Added graceful handling of creating a venv with pip
...
Currently, RustPython doesn't support the pip module. Normally, when
creating a virtual environment, pip is automatically installed. This
adds an specific error message when pip is attempted to be installed.
2020-07-31 19:32:01 -07:00
Bolun Thompson
0161b98082
Mark expected failures for the venv tests
2020-07-31 19:32:01 -07:00
Bolun Thompson
9a9a24d5f0
venv module and tests
...
The venv module was taken from CPython 3.9.0 Beta 5.
2020-07-31 19:30:16 -07:00
Bolun Thompson
24eb1185dd
Made exceptions write to stderr instead of stdout
2020-07-31 16:39:59 -07:00
Jeong YunWon
5c9de57ed9
Apply suggestions from code review
2020-08-01 04:40:12 +09:00
Jeong YunWon
58990cbbaf
Apply suggestions from code review
2020-08-01 04:39:26 +09:00
Noah
c23f279ca3
Merge pull request #2031 from BolunThompson/no_follow_symlink
...
Fixed bug where sys.executable may follow symlinks
2020-07-31 12:11:23 -05:00
Noah
3cb018cd88
Merge pull request #2040 from youknowone/pymodule-cfgs
...
cfg and pystruct_sequence support for pymodule
2020-07-31 12:09:41 -05:00
Jeong YunWon
091e777943
Merge pull request #2047 from youknowone/windows-note
...
Windows build note for failing part
2020-08-01 00:37:07 +09:00
Basix
141eba5be2
Implement msvcrt.SetErrorMode
2020-08-01 00:15:06 +09:00
Bolun Thompson
f754a4077e
Added tests for sys.executable
2020-07-30 14:03:28 -07:00
Jeong YunWon
2dbab05837
Windows build note for failing part
2020-07-31 03:55:55 +09:00
Noah
f6a08b8a01
Add a note about scripts\symlinks-to-hardlinks.ps1 in the README
2020-07-31 01:37:31 +09:00
Noah
460ca7d45b
Merge pull request #2039 from clemado1/develop
...
Allow None parameter for remove, index, count method of array
2020-07-29 22:18:24 -05:00
clemado1
123eefd87f
Allow None parameter for remove, index, count method of array
2020-07-30 10:36:53 +09:00
Jeong YunWon
64f4f14e00
Reorganize os module
2020-07-30 06:15:41 +09:00
Jeong YunWon
8ac29096a6
cfg and pystruct_sequence support for pymodule
2020-07-30 04:20:44 +09:00
Minho Heo
6032b54666
Fix negative ** fraction to returns complex value
...
Fix #1986 which (-2) ** 0.5 yields NaN.
Result:
RustPython gives
`float.__rpow__(0.5, -2)
(0.00000000000000008659560562354934+1.4142135623730951j)`
CPython 3.85 gives
`>>> float.__rpow__(0.5, -2)
(8.659560562354934e-17+1.4142135623730951j)`
2020-07-30 02:27:38 +09:00
Jeong YunWon
d193587184
Merge pull request #2034 from skinny121/cgi
...
Add cgi module
2020-07-29 20:42:51 +09:00
Ben Lewis
30a774e143
Code review changes.
2020-07-29 19:37:55 +12:00
Ben Lewis
ddb9606544
Unmark fixed tests in test_urlparse.py, and fix clippy error.
2020-07-29 19:05:40 +12:00
Ben Lewis
9da9b92633
Fix some cgi tests and mark some other as expected failures.
2020-07-29 19:05:40 +12:00
Ben Lewis
cfc7a7c734
Copy updated urllib from CPython 3.8.3.
2020-07-29 19:05:40 +12:00
Ben Lewis
9b48296fd7
Copy cgi.py and test_cgi.py from CPython 3.8.3.
2020-07-29 19:05:40 +12:00
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
Bolun Thompson
5b26281a3d
Fixed bug where sys.executable may follow symlinks
2020-07-26 20:48:40 -07: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