Commit Graph

273 Commits

Author SHA1 Message Date
Noa
ee8b11f5d2 Migrate to 2021 edition 2021-10-21 11:46:24 -05:00
Jeong YunWon
b759808736 PyObj -> PyObject 2021-10-21 17:55:29 +09:00
Jeong YunWon
4e5f897f74 PyObject -> PyGenericObject 2021-10-21 17:42:56 +09:00
Noa
8dd18d97be PyObjectRef -> &PyObj, &PyRef<T> -> &Py<T> 2021-10-21 16:49:01 +09:00
Jeong YunWon
f35284cc67 Handle error control flow in single branch 2021-10-18 15:36:52 +09:00
Noa
0093a1948f Don't compile badsyntax_ files for freeze-stdlib 2021-10-17 21:55:34 -05:00
Jeong YunWon
7cae6d24fe Refactor PyType creation 2021-10-14 13:37:45 +09:00
Jeong YunWon
63ab4e454b Better error messages for pymodule 2021-10-12 05:34:46 +09:00
Jeong YunWon
a42d547a3f new_{utf8_str, ascii_literal} -> new_str again 2021-10-11 21:28:14 +09:00
Jeong YunWon
5cd375aaa9 clean up functions and methods 2021-10-11 16:10:01 +09:00
Jeong YunWon
741cfea565 vm.ctx.new_int returns PyInt 2021-10-11 01:05:38 +09:00
Jeong YunWon
4f9f939f3c Merge pull request #3221 from youknowone/pyref-intoobject
Remove PyRef::into_object()
2021-10-08 02:36:02 +09:00
Jeong YunWon
4fb1cdb316 PyObjectWrap 2021-10-08 01:56:00 +09:00
jfh
1f78c764ad Fix warnings for doc build. 2021-10-07 17:37:24 +03:00
Jeong YunWon
92de3619fa move IntoPy{Object, Exception, Result} to vm::function
which are used to define function arguments - those functions are mostly placed in the crate
2021-10-06 19:10:16 +09:00
Jeong YunWon
7dd6891c6b clean up imports 2021-10-04 13:49:58 +09:00
Jeong YunWon
5b073154c3 Defer conversion to Diagnostic as much as possible 2021-10-04 13:49:58 +09:00
Jeong YunWon
001236e0ab pub(crate) for type modules 2021-10-03 00:15:15 +09:00
Jeong YunWon
e888991da8 expose PyTuple::_new for PyStructSequence 2021-10-01 01:54:04 +09:00
Jeong YunWon
c3d8e792b7 tp_ -> slot_ 2021-09-30 02:51:44 +09:00
Jeong YunWon
c3f46c773e Expose exception types under vm::builtins 2021-09-30 01:12:45 +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
Moreal
dd5e55d861 Use Rust mod document first
See https://github.com/RustPython/RustPython/pull/3145\#discussion_r716219438
2021-09-28 21:14:28 +09:00
Moreal
d7f5b62dca Sync module doc with database 2021-09-26 03:52:46 +09:00
Jeong YunWon
063f0def1f Fix define_exception macro not to depend on local context 2021-09-25 16:43:19 +09:00
Jim Fasarakis-Hilliard
c906ce6dbd Merge pull request #3123 from youknowone/derive-show-type
derive shows type name when with trait fails
2021-09-24 23:24:37 +03:00
Jeong YunWon
0d09bc7285 derive(PyValue) not to depend on local context 2021-09-24 20:41:11 +09:00
Jeong YunWon
a723f7761b derive show type name when with trait fails 2021-09-24 13:03:52 +09:00
Jeong YunWon
874ed5a78d Merge pull request #3098 from youknowone/doc-sync
CPython docs database for module items
2021-09-23 11:39:37 +09:00
Jeong YunWon
671a234571 pyclass module priors to umbrella pymodule 2021-09-22 22:36:42 +09:00
Jeong YunWon
064bfc5a9d cpython docs database for class 2021-09-22 10:32:23 +09:00
Jeong YunWon
c2b4755af4 CPython docs database for module items 2021-09-22 04:25:41 +09:00
Dean Li
88e869a4da impl #[derive(PyValue)] for static_type 2021-09-21 21:35:48 +08:00
Padraic Fanning
0ea56025ec Replace master with main
Fixes #3067
2021-09-15 17:54:54 -04:00
Jim Fasarakis-Hilliard
186d2a45a2 Merge pull request #3066 from youknowone/pystrkind
PyStrKind to optimize ascii strings
2021-09-16 00:03:52 +03:00
Jeong YunWon
48dc5c96b6 PyStrKind 2021-09-16 03:35:44 +09:00
Jeong YunWon
ee995a9ca8 better error for pyimpl(with) 2021-09-16 03:29:37 +09:00
Jeong YunWon
458c4d4870 Better error messages for pymethod and pyproperty 2021-09-16 03:29:37 +09:00
Jeong YunWon
60fddd1553 little bit better error message for signature error 2021-09-16 03:29:33 +09:00
Nikita Sobolev
b723bbfbb5 All exceptions are now modified with extend_exception! macro 2021-09-16 03:17:19 +09:00
Jeong YunWon
76bb68a2d0 Merge pull request #3062 from youknowone/fix-derive-pyclass-err
better error for wrong py* attributes in pyclass
2021-09-15 07:34:38 +09:00
jfh
e846b82bf5 Add 'module' at start of function signature. 2021-09-15 01:05:39 +03:00
Jeong YunWon
d8e43b292d better error for wrong py* attributes in pyclass 2021-09-15 04:41:06 +09:00
jfh
c063fc3d64 Try and generate a text signature template for both methods and functions. 2021-09-13 22:10:02 +03:00
eldpswp99
55709b71b6 implement SlotConstructor for every class 2021-09-04 20:18:13 +09:00
Jeong YunWon
407cc7aae2 trait SlotConstructor for tp_new blueprint 2021-09-04 20:15:49 +09:00
Jeong YunWon
67b338863e Merge pull request #2897 from sobolevn/better-exceptions
Adds better exception macro
2021-08-25 03:22:14 +09:00
Jeong YunWon
1fe71aa2a1 clean up clippy allows 2021-08-24 01:53:46 +09:00
Jeong YunWon
da166186de derive __text_signature__ from definition 2021-08-22 17:37:42 +09:00
sobolevn
c8e13d4b58 Typos 2021-08-19 10:46:49 +03:00