Commit Graph

9173 Commits

Author SHA1 Message Date
Jeong YunWon
c2b4755af4 CPython docs database for module items 2021-09-22 04:25:41 +09:00
Jeong YunWon
72e942301d Merge pull request #3103 from Codemonk-adi/main
Fixed Nan issue
2021-09-22 02:12:24 +09:00
Codemonk-adi
a07d3432c1 Redid the commit cause I messed up 2021-09-21 21:58:51 +05:30
Jeong YunWon
3a0c2bb752 Merge pull request #3099 from deantvv/impl-pyvalue
impl `#[derive(PyValue)]` for static_type
2021-09-22 01:16:19 +09:00
Dean Li
88e869a4da impl #[derive(PyValue)] for static_type 2021-09-21 21:35:48 +08:00
Jeong YunWon
e6e2204bde Merge pull request #3083 from moreal/impl-genericalias
Introduce `types.GenericAlias` type
2021-09-21 01:32:51 +09:00
Moreal
da79719063 Refactor PyGenericAlias type
Co-Authored-By: Jeong YunWon <youknowone@users.noreply.github.com>

 - Remove `PyGenericAliasRef`, the dedicated ref type of
   `PyGenericAlias`.
 - Use `PyTupleRef::with_elements` builder function.
 - Remove redundant `clone`.
 - Use more `Option<T>`'s functions instead `match` expr.
2021-09-21 00:52:21 +09:00
Jeong YunWon
b9edc8e3f7 Merge pull request #3095 from RustPython/offset-in-crt_fd
Move Offset definition to crt_fd
2021-09-20 15:17:19 +09:00
Noa
fe81576b06 Move Offset definition to crt_fd 2021-09-19 14:12:33 -05:00
Jeong YunWon
fa55fd9a55 Merge pull request #3086 from youknowone/x86
Fix x86 build
2021-09-20 00:44:05 +09:00
Jeong YunWon
46dc7f487b Merge pull request #3088 from deantvv/os-stat-result
os: fix stat_result test
2021-09-19 23:42:31 +09:00
Dean Li
96dcd68472 os: fix stat_result test
Implement tp_new for `stat_result`

To unpack args, this PR implement a `flatten_args` closure to
unpack args like
```
args = (1, 2, 3, 4, 5)
args = ((1, 2, 3, 4, 5))
args = (((1, 2, 3, 4, 5)))  # from pickle load
```
2021-09-19 10:07:53 +08:00
Moreal
7c3939a149 Mark failed tests by features not implemented yet 2021-09-19 03:36:24 +09:00
Moreal
2462d167d1 Bump types module to CPython 3.9.7 2021-09-19 03:36:24 +09:00
Moreal
07c6d9f298 Add list.__class_getitem__ method
See also https://www.python.org/dev/peps/pep-0585/
2021-09-19 03:36:24 +09:00
Moreal
5dad81eb0c Register types.GenericAlias type 2021-09-19 03:36:24 +09:00
Moreal
ef9d862092 Introduce types.GenericAlias type 2021-09-19 03:36:22 +09:00
Jeong YunWon
7d1dd4d199 Fix x86 build 2021-09-18 23:27:31 +09:00
Jeong YunWon
2d7a66b830 Merge pull request #3077 from jam1garner/compilation-32bit
Fix compilation on unix platforms with i32 c_long
2021-09-18 23:17:53 +09:00
Jeong YunWon
27e953fed1 Merge pull request #3084 from tony-jinwoo-ahn/tan
Add tan() and tanh() for cmath
2021-09-18 21:01:22 +09:00
Jeong YunWon
0a20519efb Merge pull request #3030 from zetwhite/os_sched
posix : implement sched_param class
2021-09-18 20:40:21 +09:00
Tony Jinwoo Ahn
9de8511367 Add tan() and tanh() for cmath
Signed-off-by: Tony Jinwoo Ahn <tony.jinwoo.ahn@gmail.com>
2021-09-18 19:42:09 +09:00
zetwhite
9b09ab2d14 posix : implement sched_param class 2021-09-18 17:12:46 +09:00
Jeong YunWon
02e5f84970 Merge pull request #3081 from mithrandir/main
Implement cmath.acosh
2021-09-18 15:33:50 +09:00
Park Jiin
cc739b4ccf Implement cmath.acosh 2021-09-18 14:50:55 +09:00
Jeong YunWon
8077e986d7 Merge pull request #3058 from youknowone/super-getattro
revise PySuper::getattro same as CPython super_getattro
2021-09-18 14:11:56 +09:00
Jeong YunWon
cfc5163bc2 revise PySuper::getattro as CPython super_getattro 2021-09-18 14:07:34 +09:00
Jeong YunWon
b12300e912 Merge pull request #3023 from Snowapril/syslog-module
Implement `syslog` module for unix
2021-09-18 13:18:15 +09:00
Jeong YunWon
cf6d3c452c Merge pull request #3075 from ConnorTroy/cmath-log-log10
Add cmath log() and log10() methods
2021-09-18 13:12:36 +09:00
jam1garner
39d3e32a50 Change pathconf/fpathconf wrapper to return c_long 2021-09-17 13:48:32 -04:00
Jeong YunWon
4ff6caa79a keep syslog ident matches to last opened syslog 2021-09-18 01:42:46 +09:00
snowapril
358bf1e562 add expected failure on fail test
Signed-off-by: snowapril <sinjihng@gmail.com>
2021-09-18 01:42:46 +09:00
snowapril
c6a261085d add test_syslog.py from cpython 3.8
Signed-off-by: snowapril <sinjihng@gmail.com>
2021-09-18 01:42:46 +09:00
snowapril
9c6cbbeba3 add syslog module implementation
This commit implement syslog module using libc crate.
Implementation largely referenced on cpython 3.8.

Signed-off-by: snowapril <sinjihng@gmail.com>
2021-09-18 01:42:46 +09:00
Connor Troy
36fb58def6 Update cmath log10 docstring to match CPython
Co-authored-by: Jim Fasarakis-Hilliard <d.f.hilliard@gmail.com>
2021-09-17 01:24:58 -06:00
Connor Troy
9013505818 Update cmath log docstring to match CPython
Co-authored-by: Jim Fasarakis-Hilliard <d.f.hilliard@gmail.com>
2021-09-17 01:23:22 -06:00
jam1garner
be3fd5d23c Fix compilation on platforms with i32 c_long 2021-09-17 01:46:48 -04:00
Connor Troy
14c9744050 Update test_cmath for log and log10 additions 2021-09-16 16:54:58 -06:00
Connor Troy
6b79200f41 Add cmath log() and log10() methods 2021-09-16 15:51:23 -06:00
Jim Fasarakis-Hilliard
e34198fc00 Remove HEAPTYPE flag from builtins. 2021-09-17 03:30:21 +09:00
Jim Fasarakis-Hilliard
3c77d1443f Merge pull request #3070 from youknowone/either-bytelike
Either<PyStrRef, ArgBytesLike> -> ArgStrOrBytesLike
2021-09-16 19:35:30 +03:00
Jeong YunWon
c63591e17f Merge pull request #3073 from qingshi163/array-tofile
Implement Array.tofile
2021-09-17 00:07:00 +09:00
Kangzhi Shi
52b7f3a5f7 unmark successful test 2021-09-16 15:29:26 +02:00
Kangzhi Shi
dcb0698c99 Impl array.tofile 2021-09-16 15:22:59 +02:00
Jeong YunWon
2a2a9636f5 Either<PyStrRef, ArgBytesLike> -> ArgStrOrBytesLike 2021-09-16 10:40:29 +09:00
Jim Fasarakis-Hilliard
4d5c66cc9d Merge pull request #3068 from youknowone/char_all
PyStr::char_all: refactor application of function on all characters
2021-09-16 03:34:02 +03:00
Jim Fasarakis-Hilliard
80b9e2c3c2 Merge pull request #3069 from youknowone/either-option
replace Either usage to Option
2021-09-16 02:57:45 +03:00
Jim Fasarakis-Hilliard
cdc92b89a9 Merge pull request #3071 from fanninpm/master-what-master
Replace `master` with `main`
2021-09-16 02:53:01 +03:00
Padraic Fanning
0ea56025ec Replace master with main
Fixes #3067
2021-09-15 17:54:54 -04:00
Jeong YunWon
4f4e03206b replace Either usage to Option 2021-09-16 06:37:59 +09:00