Commit Graph

5073 Commits

Author SHA1 Message Date
Padraic Fanning
499a33cb28 Run rustfmt 2021-05-07 17:59:19 -04:00
Padraic Fanning
2e75403a54 Suppress manual_map lint for future expansion 2021-05-07 17:57:02 -04:00
Padraic Fanning
311dac1bc5 Remove unnecessary map() 2021-05-07 17:51:43 -04:00
Padraic Fanning
984ea440c3 Fix manual_map Clippy warning 2021-05-07 17:16:53 -04:00
Padraic Fanning
0174e386a1 Fix inconsistent_struct_constructor Clippy warning 2021-05-07 17:00:38 -04:00
Jeong YunWon
c5d1f4afaa Merge pull request #2601 from ishigoya/test_slice
slice: error on negative integers in indices method
2021-05-08 03:57:55 +09:00
Jeong YunWon
3144ff8a72 Merge pull request #2602 from RustPython/coolreader18/fix-windows-symlinks
Remove symlinks-to-hardlinks.ps1 hack
2021-05-08 03:43:45 +09:00
Noah
9a83e15918 Fix cfg for windows-gnu target 2021-05-02 10:41:46 -05:00
Noah
936826bd44 Replace symlinks-to-hardlinks.ps1 hack with a nicer hack 2021-05-01 23:23:45 -05:00
Padraic Fanning
4c8e4028b5 Fix binop error message 2021-05-01 15:02:52 -04:00
Robert Booth
67bf977036 slice: error on negative integers in indices method 2021-05-02 01:54:53 +09:00
Jeong YunWon
5647653511 Merge pull request #2592 from ishigoya/index-test
Type checking for __index__-defined integers
2021-05-01 18:12:46 +09:00
Dean Li
69a7f3d1cb os: symlink use FromArgs for arguments
Related to #1175
2021-04-30 20:33:17 +08:00
Rob
b8259ff53d Update vm/src/pyobject.rs
prepend unused parameters with underscores in special_retrieve function

Co-authored-by: Jeong YunWon <youknowone@users.noreply.github.com>
2021-04-30 17:35:13 +09:00
Noah
f608626f27 Fix tests in test_ntpath/add functions to the nt module 2021-04-27 21:04:59 -05:00
Noah
d8d979a420 Skip/unskip some tests on unix now 2021-04-27 08:15:13 -05:00
Noah
1feae7841f Fix stuff on windows 2021-04-27 08:15:13 -05:00
Noah
d969299de5 Always have fds represent the C RT's fds, even on windows 2021-04-27 08:15:12 -05:00
Jeong YunWon
53ce13bf00 Merge pull request #2588 from RustPython/coolreader18/less-deps
Less dependencies (remove _serde_json and regex_crate modules)
2021-04-27 21:05:41 +09:00
Noah
d226cb818c Merge pull request #2594 from deantvv/os-open-args
os: Fix `open` keyword arguments
2021-04-26 09:06:25 -05:00
Dean Li
d99f4038e1 os: Fix open keyword arguments
Following code used to fail due to the way used to define
os.open in rust. To fix this, we need to use `FromArgs`
to define `struct OpenArgs {...}`.
```
f = os.open(path=__file__, flags=os.O_RDONLY, mode=0o777, dir_fd=None)
```

Noted that the original `open` is now rename to `os_open`
and is exported as `open`.

Related to #1175
2021-04-26 19:51:24 +08:00
Robert Booth
222d1776ae rustfmt on pyobject.rs file 2021-04-26 10:01:39 +09:00
Robert Booth
dd50b252a8 use to_index instead of to_index_opt in int special_retrieve 2021-04-26 09:49:06 +09:00
Robert Booth
48d7c360b6 use call to to_index_opt in int special_retrieve 2021-04-26 08:35:06 +09:00
Noah
8ae26e545f Don't depend on num-iter 2021-04-25 18:03:29 -05:00
Noah
2e33b227b3 Impl py_io::Write for String 2021-04-25 18:03:28 -05:00
Noah
f7de913e07 Merge pull request #2593 from deantvv/os-utimeargs-cfg-gate
os: Put `UtimeArgs` behind cfg gate
2021-04-25 10:06:42 -05:00
Dean Li
0620918a30 os: Put UtimeArgs behind cfg gate 2021-04-25 10:31:16 +08:00
Robert Booth
6a293b2e47 replace unwrap_or with unwrap_or_else 2021-04-25 07:18:32 +09:00
Robert Booth
af6b230dad Change int type checking, amend tests
- add a special_retrieve fudge function to the PyValue trait
- define the special_retrieve function for PyInt
- remove blocks on successful tests to reflect effect of changes
2021-04-25 01:18:57 +09:00
Noah
325007f6f3 Don't include regex in the binary, remove regex_crate module 2021-04-22 08:31:27 -05:00
Noah
9aab312dae Remove serde_json python module 2021-04-22 08:08:19 -05:00
Noah
78c5048940 Gate foreign-types-shared under ssl feature 2021-04-22 08:06:10 -05:00
Kangzhi Shi
807acfeddd impl sre Pattern compare 2021-04-22 08:57:18 +02:00
Noah
f8e5be9351 Merge pull request #2572 from RustPython/fix-codecov
Fix remaining code coverage collection issues
2021-04-21 22:58:29 -05:00
Noah
696aa99b80 Apply review comments 2021-04-21 20:44:18 -05:00
Noah
666383633f Add signal.set_wakeup_fd and signal.siginterrupt 2021-04-21 20:09:51 -05:00
Noah
6e60bda0e0 Add the fcntl module 2021-04-21 20:09:50 -05:00
Noah
0fcaaa62d9 os.error is OSError 2021-04-21 20:09:50 -05:00
Noah
b4827a8d22 Use Cow<str> for key in stdlib_inits, remove use of hashmap macro 2021-04-21 20:09:50 -05:00
Noah
57259b00ac Add the resource module 2021-04-21 20:09:50 -05:00
Noah
2a70fb2eed Improve structsequence 2021-04-21 20:09:50 -05:00
Robert Booth
cc2382b9b9 inline code from and remove save_unconsumed_input method 2021-04-22 07:14:18 +09:00
Robert Booth
ae815839e8 Change Rust zlib compression code for zlib tests
- decompress method: Amend error message
- Pass data chunks on a per-slice basis to compression API
2021-04-21 23:21:57 +09:00
Noah
631e17a630 Merge pull request #2576 from qingshi163/sreupdate
fix sre zerowidth search
2021-04-20 10:13:50 -05:00
Kangzhi Shi
7ab4e9573c fix sre zerowidth search 2021-04-20 10:21:16 +02:00
Noah
c88d935ca0 Fix remaining code coverage issues, hopefully 2021-04-19 23:03:16 -05:00
Noah
dc22d08d29 Merge pull request #2573 from qingshi163/sre-pattern-repr
impl Pattern __repr__
2021-04-19 08:24:31 -05:00
Kangzhi Shi
7085fed82c impl Pattern __repr__ 2021-04-19 09:15:17 +02:00
Noah
8d5588df67 Merge pull request #2532 from Pluriscient/documentation/common-start
Documentation of VM & Bytecode
2021-04-18 15:12:29 -05:00