Commit Graph

9197 Commits

Author SHA1 Message Date
jfh
f2bda7d4cf Refactor math.rs into module. 2021-09-23 03:18:31 +03:00
Jeong YunWon
29c90a6fe8 Merge pull request #2719 from DimitrisJim/no-export
Don't export stdlib modules.
2021-09-23 00:34:36 +09:00
Jeong YunWon
225e7427a7 Merge pull request #3092 from youknowone/str-safe
Fix PyStr operations to be safe
2021-09-23 00:26:28 +09:00
Jeong YunWon
8962376271 Merge pull request #3113 from Snowapril/solve-clippy-warnings
Solve clippy warnings in window
2021-09-23 00:23:42 +09:00
snowapril
df5b386b4b resolve clippy warnings in window
Signed-off-by: snowapril <sinjihng@gmail.com>
2021-09-22 23:35:20 +09:00
Jim Fasarakis-Hilliard
35f1bd15c5 Merge pull request #3114 from youknowone/pyclass-module
pyclass module priors to umbrella pymodule name
2021-09-22 17:34:51 +03:00
Jim Fasarakis-Hilliard
f24884c970 Merge pull request #3108 from youknowone/pycallable
Rename Py{Callable, Iterable} to Arg{..}
2021-09-22 17:32:25 +03:00
Jeong YunWon
671a234571 pyclass module priors to umbrella pymodule 2021-09-22 22:36:42 +09:00
Jeong YunWon
0317647e7a clean up function::Arg imports 2021-09-22 21:03:16 +09:00
Jeong YunWon
ffef73c1d7 split Arg{Callble,Iterable} from pyobject.rs 2021-09-22 21:01:44 +09:00
Jeong YunWon
a5309a7888 Rename Py{Callable, Iterable} to Arg{..}
which were not a python object but just argument helper
2021-09-22 20:58:26 +09:00
Jeong YunWon
7ea52cb215 Merge pull request #3110 from youknowone/use-regroup
Group use for vm stuff to prevent reorder for rustpython_stdlib
2021-09-22 12:47:26 +09:00
Jeong YunWon
137a543ca7 regroup use items for bulitin stdlibs 2021-09-22 12:08:17 +09:00
Jeong YunWon
96c9d9ec16 Group use for vm stuff to prevent reorder for rustpython_stdlib 2021-09-22 12:08:17 +09:00
Noa
f357a958ca Merge pull request #3107 from youknowone/try-to
try to types utility functions to PyObjectRef methods
2021-09-21 20:20:03 -05:00
Noa
d5272c9310 Merge pull request #3105 from youknowone/wchar-t
extract wchar_t definition to rustpython-common
2021-09-21 20:14:19 -05:00
Noa
69c7d93885 Merge pull request #3093 from youknowone/ci-cache
Enable cache for exotic/miri targets
2021-09-21 14:56:04 -05:00
Jeong YunWon
09bc4d3cae pybool::boolval -> PyObjectRef::try_into_bool 2021-09-22 03:48:53 +09:00
Jeong YunWon
540b9c316a Export common conversion parameter type IntoPy* 2021-09-22 03:38:09 +09:00
Jeong YunWon
bc2bb1023d try to types utility functions to PyObjectRef methods 2021-09-22 03:35:12 +09:00
Jeong YunWon
2952f6e7c6 extract wchar_t definition to rustpython-common 2021-09-22 03:30: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
795738d32b ascii! macro 2021-09-21 18:14:42 +09: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
7395959f5f Fix PyStr operations to be safe 2021-09-21 00:32:26 +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
2a56ce7997 Enable cache for exotic/miri targets 2021-09-20 02:55:11 +09: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