Commit Graph

221 Commits

Author SHA1 Message Date
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
Noah
b3851c8eb8 Split the ast from the parser, remove compiler dep on parser 2020-11-07 15:43:23 -06:00
Noah
275919694d Make StaticCell less complex to use 2020-10-22 14:06:05 -05:00
Jeong YunWon
5b32064cd6 trait StaticType 2020-10-20 01:43:39 +09:00
Jeong YunWon
d54cfaf3f4 Keep source code order for module items 2020-10-19 18:21:04 +09:00
Jeong YunWon
1f8213082c py* macro raises better error for duplicated item 2020-10-19 18:11:44 +09:00
Noah
79d5872942 Expose PyGetSet in builtins 2020-10-16 20:49:20 -05:00
Jeong YunWon
ca9326f95d expose bulitins items on builtins module and hide submodules 2020-10-12 11:43:24 +09:00
Jeong YunWon
9e6dfca9e9 Fix build with new builtins path 2020-10-11 21:16:16 +09:00
Jeong YunWon
4da1b62c18 PyFuncArgs -> FuncArgs
which does not represent a single python object
2020-10-11 09:38:07 +09:00
Kangzhi Shi
499d99794c Implement Buffer Protocol 2020-10-10 16:57:19 +09:00
Noah
b7ec304316 Don't refer to rustpython_vm::vm 2020-10-01 18:07:39 -05:00
Noah
44b3366be6 Fully qualify Result 2020-10-01 18:04:11 -05:00
Noah
acd0bf5434 Make the FromArgs derive less verbose 2020-10-01 17:42:07 -05:00
Noah
569eb8e903 Make it unnecessary to import PyClassImpl for #[pymodule] 2020-09-30 21:26:48 -05:00
Noah
d8a73ead42 Make it unnecessary to import PyClassImpl for #[pymodule] 2020-09-30 11:33:22 -05:00