Commit Graph

5631 Commits

Author SHA1 Message Date
Jeong YunWon
8a46e638ce PyIter -> SlotIterator to reserve PyIter for protocol object 2021-09-30 03:06:47 +09:00
Jeong YunWon
c3d8e792b7 tp_ -> slot_ 2021-09-30 02:51:44 +09:00
Jeong YunWon
fb4581bd45 vm::sysmodule -> vm::stdlib::sys 2021-09-30 02:19:58 +09:00
Jeong YunWon
0f2efbe930 Merge pull request #3163 from afpro/main
android SSL support system certs
2021-09-30 02:03:37 +09:00
Jeong YunWon
0d9d689a09 Merge pull request #3152 from youknowone/array-internal
array buffer internal with original type
2021-09-30 01:51:56 +09:00
Jeong YunWon
5d1e0a95bb Merge pull request #3131 from youknowone/exc-builtins
Expose exception types under vm::builtins
2021-09-30 01:51:11 +09:00
Jeong YunWon
65d0eb35a0 Merge pull request #3045 from DimitrisJim/clean_pyargs
Clean up bare occurunces of `[pyarg(any)]`
2021-09-30 01:28:55 +09:00
Jeong YunWon
d2692554e4 clean up imports 2021-09-30 01:26:41 +09:00
Jeong YunWon
c3f46c773e Expose exception types under vm::builtins 2021-09-30 01:12:45 +09:00
Jeong YunWon
3a84b28c87 Merge pull request #3109 from youknowone/byteslike-args
move vm/src/{byteslike.rs -> function/byteslike.rs}
2021-09-30 01:06:37 +09:00
Jeong YunWon
06e439ee58 Merge pull request #3150 from deantvv/io-error-with-filename
OSError with filename and filename2
2021-09-30 00:18:13 +09:00
Dean Li
66bb59016d generalize IOErrorWithFilename to use PathOrFd 2021-09-29 22:16:45 +08:00
Jim Fasarakis-Hilliard
ab9ca950e2 Merge pull request #3141 from youknowone/fspath
FsPath public API
2021-09-29 15:55:09 +03:00
jfh
121655826a pyarg(any) implies positional_or_keyword 2021-09-29 15:43:09 +03:00
afpro
dee02b4935 fix naming (droid->android); fix compile error 2021-09-29 11:44:57 +08:00
Jeong YunWon
495ba77ae5 move vm/src/{byteslike.rs -> function/byteslike.rs} 2021-09-29 02:28:43 +09:00
Jeong YunWon
728af615ff clean up andorid ssl 2021-09-29 02:00:13 +09:00
Jeong YunWon
6878200a45 Merge pull request #3145 from moreal/sync-module-doc-with-database
Sync some modules' doc with database
2021-09-29 01:17:00 +09:00
Dean Li
3af3b1f0d9 OSError with filename and filename2
Implement OSError members `filename` and `filename2` by adding a new
struct `IOErrorWithFilename` will implement `IntoPyException`.

This PR will *NOT* pass more CPython test(*) but will allow user to
access `attr:filename` in OSError exception which IMO is a important
feacture.
2021-09-28 20:08:57 +08:00
afpro
a65ef3e49c android SSL support system certs 2021-09-28 17:15:11 +08:00
Jeong YunWon
dad7fae8ac remove create_exception_type 2021-09-28 16:45:07 +09:00
Jeong YunWon
ba5ce91a15 remove exception_slots 2021-09-28 16:38:58 +09:00
Jeong YunWon
44f7bc468a vm::utils::ascii! -> common::ascii! 2021-09-28 15:47:54 +09:00
Jeong YunWon
732c7d201d clean up use statements 2021-09-28 02:56:07 +09:00
Jeong YunWon
3952d8cda4 array buffer internal with original type 2021-09-28 02:48:51 +09:00
Jeong YunWon
da898a3de2 Merge pull request #3151 from youknowone/signal
Refactor signal with pymodule
2021-09-28 01:58:21 +09:00
Jeong YunWon
ed01f87730 Merge pull request #3144 from youknowone/pytype-new
pytype::new -> PyType::new
2021-09-28 01:07:15 +09:00
Jeong YunWon
81603b5805 Merge pull request #3142 from youknowone/int-primitive
int::try_to_primitive -> PyInt::try_to_primitive
2021-09-28 01:07:01 +09:00
Jeong YunWon
1e9ec5b4b9 split signal module from stdlib 2021-09-28 01:05:24 +09:00
Jeong YunWon
c25724d9b2 Refactor signal with pymodule 2021-09-28 00:47:01 +09:00
Jeong YunWon
b195b10ae3 Refactor ssl module 2021-09-27 15:50:43 +09:00
Jeong YunWon
4650b30b85 int::try_to_primitive -> PyInt::try_to_primitive 2021-09-26 13:21:52 +09:00
Jeong YunWon
e21c0afe8a PyType::new 2021-09-26 12:44:13 +09:00
Jeong YunWon
5fab0771ae expose ascii! macro as pub 2021-09-26 12:27:03 +09:00
Jeong YunWon
2d727abfbb Merge pull request #3140 from youknowone/int-method
move int::bigint_unsigned_mask to PyInt::as_u32_mask
2021-09-26 05:44:28 +09:00
Jeong YunWon
59a64048ba FsPath public API 2021-09-26 05:33:22 +09:00
Jim Fasarakis-Hilliard
8c59fb4f42 Merge pull request #3138 from youknowone/asbuffer
Rename AsBuffer::{as_buffer -> tp_as_buffer, get_buffer -> as_buffer}
2021-09-25 23:25:59 +03:00
Jeong YunWon
ec23fa56c9 Merge pull request #3134 from deantvv/os-execv
os: fix execv argument type
2021-09-26 04:37:22 +09:00
Jeong YunWon
84a2396ade move int::bigint_unsigned_mask to PyInt::as_u32_mask 2021-09-26 04:32:43 +09:00
Jeong YunWon
cb9bfce007 clean up use statements 2021-09-26 04:05:53 +09:00
Moreal
d7f5b62dca Sync module doc with database 2021-09-26 03:52:46 +09:00
Jeong YunWon
3ba42dbd4c Rename AsBuffer::{as_buffer -> tp_as_buffer, get_buffer -> as_buffer} 2021-09-26 03:31:27 +09:00
Dean Li
0c7246054e os: fix execv argument type 2021-09-26 00:39:04 +08:00
zetwhite
2d9867d002 posix : implement sched_set/getscheduler and sched_set/getparam 2021-09-25 14:08:29 +09:00
Jeong YunWon
d6ec90d77d clean up builtins use 2021-09-25 12:34:34 +09:00
Jeong YunWon
5e2a61ee99 Fix windows build warnings 2021-09-25 03:20:49 +09:00
Jeong YunWon
efb14a4f78 rustpython_vm::protocol to hold protocols 2021-09-25 03:20:08 +09:00
Jeong YunWon
98a62c581c Universal mechanism for Iterable/PyIter 2021-09-25 03:04:41 +09:00
Jeong YunWon
0d09bc7285 derive(PyValue) not to depend on local context 2021-09-24 20:41:11 +09:00
Jeong YunWon
90eed30ad8 remove compiler warnings 2021-09-24 19:33:23 +09:00