Jeong YunWon
77ab21ce8d
Merge pull request #2463 from fanninpm/test-base64
...
Add test_base64 from CPython 3.8.7
2021-08-17 23:30:38 +09:00
Jeong YunWon
6b6a667890
Merge pull request #2901 from Tetramad/pprint
...
Update pprint module to Python3.8
2021-08-17 17:13:45 +09:00
Jeong YunWon
7e3be9163d
Merge pull request #2860 from youknowone/try-from-int
...
TryFromBorrowedObject for int types
2021-08-17 17:12:56 +09:00
Tetramad
f6fbea3019
Update pprint module to Python3.8
...
Add `sort_dicts` parameter to several functions and new `pp` function.
2021-08-17 13:59:07 +09:00
Jim Fasarakis-Hilliard
25eeba86b8
Merge pull request #2899 from sobolevn/fixes-ci
...
Fix the failing CI
2021-08-17 02:04:31 +03:00
sobolevn
10fe2d4763
Attempt to fix the failing CI
2021-08-17 01:32:25 +03:00
Jeong YunWon
2da818c0de
Merge pull request #2894 from owljoa/fix-math-pow-test
...
Fix failed test pow in test_math
2021-08-16 20:55:56 +09:00
Kim Dong In
1e41a0bb56
apply cargo fmt
2021-08-16 17:16:47 +09:00
Dong In Kim
405fc685bd
Update vm/src/stdlib/math.rs
...
Co-authored-by: Jeong YunWon <youknowone@users.noreply.github.com >
Co-authored-by: Jeong YunWon <youknowone@users.noreply.github.com >
2021-08-16 17:11:47 +09:00
Kim Dong In
6fa88ab05a
Fix failed test pow in test_math
...
add two conditions to raise ValueError for input values
case 1: NaN, when both input values are finite, and base is negative and exponent is non-integer
case 2: divde by zero, when base is 0 exponent is negative value
2021-08-16 16:45:45 +09:00
Jeong YunWon
9ce8ec8a0f
Merge pull request #2884 from youknowone/slot-wrapper
...
add_slot_wrappers must be called up to once
2021-08-16 15:35:46 +09:00
Jeong YunWon
95c5e98de5
Merge pull request #2892 from DimitrisJim/test_enumerate
...
Add test_enumerate from CPython 3.8
2021-08-16 15:30:43 +09:00
jfh
f7b6730c5d
Mark failing tests.
2021-08-16 08:42:56 +03:00
Jeong YunWon
6988e82d0d
Merge pull request #2890 from DimitrisJim/enum_baseclass
...
Allow enumerate as base class.
2021-08-16 14:10:16 +09:00
jfh
8723952cce
Add test_enumerate from CPython 3.8.
2021-08-16 07:30:38 +03:00
jfh
d23c7e9432
Allow enumerate as base class.
2021-08-16 07:27:45 +03:00
voidSatisfaction
67ede59c32
Add math.prod function and enable its tests
2021-08-15 23:20:28 +09:00
Jim Fasarakis-Hilliard
a4dce8068f
Merge pull request #2887 from DimitrisJim/reverse_deque_iterator
...
Add reverse deque iterator.
2021-08-14 23:06:05 +03:00
jfh
8978e8ccda
Add reverse deque iterator.
2021-08-14 22:07:41 +03:00
Gyuseok Jung
b8c0c8cc65
add time.time_ns() function
2021-08-15 00:07:05 +09:00
Jeong YunWon
7d53c65bfb
Merge pull request #2885 from Snowapril/rename-time-module
...
Rename time_module.rs to time.rs
2021-08-14 21:59:43 +09:00
Snowapril
7cc2a5431f
Fix frozenset copy to return self ( #2883 )
...
Fix frozenset copy to return zelf if called on frozenset instance
2021-08-14 15:56:22 +03:00
snowapril
5049611a4e
rename time_module.rs to time.rs
...
This commit resolve issue #2882 .
* rename time_module.rs to time.rs
Signed-off-by: snowapril <sinjihng@gmail.com >
2021-08-14 20:46:26 +09:00
Jeong YunWon
4c9fa5a521
add_slot_wrappers must be called up to once
2021-08-14 17:57:02 +09:00
Jeong YunWon
5ff0e4e5de
TryFromBorrowedObject for ints
2021-08-14 16:48:56 +09:00
Jeong YunWon
9d99ea9376
Merge pull request #2879 from moreal/bugfix/unnecessary-slot-overwrite
...
Remove unnecessary slot wrapper addition
2021-08-14 16:14:39 +09:00
Jeong YunWon
61bae9aee8
Merge pull request #2856 from youknowone/buffer-protocol
...
give an own module for buffer protocol + TryFromBorrowedObject
2021-08-14 15:28:54 +09:00
Moreal
597771d16e
Unmark fixed tests
2021-08-14 15:25:39 +09:00
Jeong YunWon
62bff17dcb
TryFromBorrowedObject for byteslike
2021-08-14 13:39:06 +09:00
Jeong YunWon
4d4e39af20
Rename PyBytesLike, PyRwBytesLike, BufOrStr to Arg-prefixed proper names
2021-08-14 13:39:06 +09:00
Jeong YunWon
3ed817f1c8
impl TryFromBorrowedObject for PyBytes
2021-08-14 13:39:06 +09:00
Jeong YunWon
f6de106e13
PyBytesInner::try_from_borrowed_object
2021-08-14 13:39:06 +09:00
Jeong YunWon
e594090629
BufferProtocol -> AsBuffer
2021-08-14 13:39:06 +09:00
Jeong YunWon
888b3822b7
Give a sole module for buffer protocol
2021-08-14 13:39:06 +09:00
Jeong YunWon
93cf687d15
TryFromBorrowedObjcet for PyBuffer
2021-08-14 13:39:06 +09:00
Jeong YunWon
ee09ef2bd2
TryFromBorrowedObject
2021-08-14 13:39:06 +09:00
Moreal
ecf787713e
Remove unnecessary slot wrapper overwriting
2021-08-14 13:17:43 +09:00
Jeong YunWon
289ddeaa3c
Merge pull request #2878 from DimitrisJim/sets_reduce
...
Add reduce for set, frozenset.
2021-08-14 12:50:07 +09:00
Noa
cc40ae025e
Merge pull request #2851 from deantvv/fix-os-sendfile
...
Fix os sendfile
2021-08-13 20:34:21 -05:00
Dean Li
3bb4e5d808
os: fix sendfile for macos
...
In python, `count` in `sendfile` doesn't include nbytes in headers or trailers.
But in `nix::sys::sendfile::sendfile` does.
From nix doc,
```
If any headers are specified and `count` is non-zero,
the length of the headers will be counted in the limit of total bytes sent.
```
2021-08-14 07:57:05 +08:00
jfh
ac0d5ff8b0
Add reduce for set, frozenset.
2021-08-14 01:11:13 +03:00
Jim Fasarakis-Hilliard
a21ad9e390
Merge pull request #2804 from youknowone/static-metaclass
...
metaclass support for #[pyclass] macro
2021-08-13 22:04:13 +03:00
Jeong YunWon
634a6c2435
Merge pull request #2875 from DimitrisJim/retry_set_ops
...
Retrying contains, remove, discard with a frozenset.
2021-08-14 00:27:20 +09:00
jfh
4a460248b9
Retrying contains, remove, discard with a frozenset.
2021-08-13 17:33:13 +03:00
Jeong YunWon
724d75d489
Merge pull request #2845 from youknowone/vscode-lldb
...
vscode lldb configuration template
2021-08-13 23:06:03 +09:00
Nikita Sobolev
2bfafbbaaa
Removes unused imports
2021-08-13 21:50:50 +09:00
Jeong YunWon
805abb78e8
Merge pull request #2871 from DimitrisJim/deque_init
...
Deque.__init__ handles initialization.
2021-08-13 14:43:58 +09:00
Jeong YunWon
2e7c3bd721
Merge pull request #2873 from DimitrisJim/cleaning
...
Clean up remaining pymethod usages.
2021-08-13 14:41:08 +09:00
jfh
c1b8eaaf57
Clean up remaining pymethod usages.
2021-08-13 01:14:28 +03:00
Noa
f813a54622
Merge pull request #2862 from RustPython/exotic-targets-ci
...
Check compilation for Android and Redox in CI
2021-08-12 16:48:11 -05:00