Jeong YunWon
abc4b4196e
FsPath::to_pathlike
2021-09-24 00:18:12 +09:00
Jeong YunWon
f61b73cd3f
split posix_compat from os
2021-09-24 00:18:12 +09:00
Jeong YunWon
199eeee815
split posix from os
2021-09-24 00:18:12 +09:00
Jeong YunWon
cfde531bfb
Merge pull request #3119 from DimitrisJim/math_module
...
Refactor math.rs into module.
2021-09-23 11:38:51 +09:00
jfh
f7509d2cb2
Refactor cmath constants.
2021-09-23 03:33:55 +03:00
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
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
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
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
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
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
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
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
Park Jiin
cc739b4ccf
Implement cmath.acosh
2021-09-18 14:50:55 +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
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
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
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
Kangzhi Shi
dcb0698c99
Impl array.tofile
2021-09-16 15:22:59 +02:00