Commit Graph

236 Commits

Author SHA1 Message Date
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
Eric van der Toorn
029a3cb45d add some comments in derive 2021-03-29 15:20:50 +02:00
Noah
561f4ee779 Allow tuple structs for derive(FromArgs) 2021-02-08 12:36:54 -06:00
Noah
da6332475b Merge pull request #2403 from RustPython/coolreader18/bincode-libmap
Serialize entire frozen hashmap to bytes
2021-01-29 02:18:13 -06:00
Noah
58503cb0fa Serialize entire frozen hashmap to bytes 2021-01-29 00:46:51 -06:00
Noah
ba300c75ab Update pow tests to 3.8 version 2021-01-26 10:30:09 -06:00
Noah
a5d45124fd Update other stuff to use the root of rustpython_bytecode 2020-12-19 14:59:07 -06:00
Noah
a4aef93327 Make all builtin functions have names 2020-12-17 16:29:43 -06:00
Noah
34bb5f0d7a Apply review suggestions 2020-12-05 16:36:38 -06:00
Noah
2c29a33d00 Add support for deleter on getsets 2020-12-05 16:36:00 -06:00
Noah
6d7eae98b8 Add iter, iternext slots & Allow deleting slot magic methods 2020-11-17 23:47:48 +09:00
Noah
4528f17210 compiler/porcelain wrapper 2020-11-07 15:43:23 -06:00