Commit Graph

212 Commits

Author SHA1 Message Date
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
Noah
8d5588df67 Merge pull request #2532 from Pluriscient/documentation/common-start
Documentation of VM & Bytecode
2021-04-18 15:12:29 -05:00
Eric van der Toorn
029a3cb45d add some comments in derive 2021-03-29 15:20:50 +02:00
Noah
25ecd7c38b Upgrade dependencies 2021-03-25 08:06:56 -05: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
2f232ecbe3 Implement string interning for variable names 2020-11-09 15:51:57 -06: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
Jeong YunWon
59db19d1ea PyClass -> PyType 2020-09-26 07:32:38 +09:00
Jeong YunWon
39856bc500 PyTuple::_new to hide it from public api 2020-09-26 03:08:22 +09:00
Jeong YunWon
07f898e4f0 tuple internal to Box<[PyObjectRef]>
it will use 16bytes instead of 24bytes
2020-09-26 03:02:47 +09:00
Jeong YunWon
5c81e7b044 Reuse empty tuple singleton 2020-09-26 02:59:33 +09:00
Jeong YunWon
1f309322d7 Allow #[pyimpl(with(PyRef))] 2020-09-25 02:46:07 +09:00
Jeong YunWon
f29c158748 pyattr for pyclass 2020-09-25 02:27:54 +09:00
Jeong YunWon
874b5e5568 iter_use_idents for ident traversal 2020-09-25 02:12:12 +09:00
Jeong YunWon
c76126f951 tp_cmp optimization 2020-09-24 07:50:11 +09:00
Jeong YunWon
991b968294 tp_call prevent clone 2020-09-24 07:50:11 +09:00
Jeong YunWon
09ebd19857 optimize tp_hash 2020-09-24 01:55:05 +09:00
Jeong YunWon
5e69141884 slot call use trait function as its signature 2020-09-24 01:50:43 +09:00
Jeong YunWon
6f230ff7d7 optimize descr_get 2020-09-24 01:42:28 +09:00
Jeong YunWon
d59f9c3c4e tp_call optimization 2020-09-24 01:40:53 +09:00
Noah
6c3e4819ed Rework native function creation a bit 2020-09-20 22:36:35 -05:00
Jeong YunWon
52e19c2331 pyattr allows use group 2020-09-19 07:47:57 +09:00