356 Commits

Author SHA1 Message Date
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
sobolevn
aa814ca181 Format 2021-08-19 10:43:29 +03:00
sobolevn
b5c03c6804 Adds pyexception macro 2021-08-19 10:40:15 +03:00
sobolevn
fc4a948ea9 WIP: adds better exception macro, refs #2771 2021-08-18 22:20:36 +03:00
Jim Fasarakis-Hilliard
a21ad9e390 Merge pull request #2804 from youknowone/static-metaclass
metaclass support for #[pyclass] macro
2021-08-13 22:04:13 +03:00
Jeong YunWon
03a9d6058b Refactor Buffer Protocol (mostly namings) (#2849)
* Refactor Buffer protocol into RustPython convention
2021-08-11 20:11:31 +03:00
Jeong YunWon
8d14cf53c5 Merge pull request #2824 from DimitrisJim/use_vm_common
Use rustpython_common via public name.
2021-08-10 04:58:29 +09:00
jfh
91022f5808 Use rustpython_common via exported name. 2021-08-09 22:02:00 +03:00
sobolevn
e939346850 Adds class field to PyGetSet to fix __qualname__ and (in future) repr, refs #2790 2021-08-08 18:53:57 +03:00
Jeong YunWon
3c649f4878 metaclass support for #[pyclass] macro 2021-08-08 04:23:13 +09:00
Nikita Sobolev
73ae7a6116 Adds __qualname__ to PyBuiltinMethod 2021-08-01 09:16:27 +09:00
Jeong YunWon
ff4efd0f60 Fix unnessessary borrow 2021-07-30 02:32:16 +09:00
Noah
99104faaf7 Re-export pyobject::* from the root of the crate 2021-05-20 10:24:07 -05:00
Noah
353183dc79 Don't check git for symlinks
Co-authored-by: Jesse Hoobergs <jhoobergs@users.noreply.github.com>
2021-05-01 23:25:04 -05:00
Noah
55884f99b9 Fix thanks to @jhoobergs
Co-authored-by: Jesse Hoobergs <jhoobergs@users.noreply.github.com>
2021-05-01 23:23:45 -05:00
Noah
936826bd44 Replace symlinks-to-hardlinks.ps1 hack with a nicer hack 2021-05-01 23:23:45 -05:00
Noah
666383633f Add signal.set_wakeup_fd and signal.siginterrupt 2021-04-21 20:09:51 -05:00
Noah
2a70fb2eed Improve structsequence 2021-04-21 20:09:50 -05:00