Steve Shi
186990f4f2
Refactor Sequence Protocol ( #4137 )
...
* Refactor Sequence Protocol
* rebase
* fixup
* fix inherit slots
* rebase
* fix io slot_init
* mark unsuccess test_xml_etree
2022-10-10 20:21:15 +02:00
Jeong YunWon
e002191a48
pyproperty -> pygetset
...
Though it actually create a getset descriptor,
we didn't change the name because its concept was a property for writers.
Now we have `pymember`, another property-like descriptor. So naming them under
same level would be less confusing instead of telling everybody
"it is a getset but we call it pyproperty"
2022-09-18 14:18:49 +09:00
Moreal
e7b39bdc8a
Implement MemberDescrObject setter
2022-09-18 06:49:37 +09:00
Lee Dogeon
4ccdc19208
Implement __slots__ with member_descriptor ( #4106 )
2022-08-25 02:11:23 +09:00
Jeong YunWon
60a6714d5d
remove Mode from codegen root
2022-08-23 05:15:27 +09:00
Jeong YunWon
fc6d614bf4
rustpython-bytecode -> rustpython-compiler-core
2022-08-22 08:42:20 +09:00
Jeong YunWon
6eeaf976a2
sort Cargo.toml dependencies
2022-08-22 08:42:20 +09:00
Jeong YunWon
4d0d9ff1a1
Refactor symboltables and _ast to use codegen when possible
2022-08-22 08:42:20 +09:00
Jeong YunWon
fb5ac9e79b
reorganize compiler crates
2022-08-22 04:42:42 +09:00
Jeong Yunwon
f5ed346716
Fix clippy warnings
2022-08-16 07:36:25 +09:00
Jeong YunWon
d59af76be5
Fix compile_bytecode
2022-08-15 20:09:31 +09:00
Jeong Yunwon
055c5cfb97
pyimpl -> pyclass
2022-08-05 01:18:10 +09:00
Kangzhi Shi
069c6c9a1e
refactor replace nonnull with pointerslot
2022-07-24 07:36:38 +09:00
Kangzhi Shi
c24457521d
proto heaptypeext
2022-07-24 07:36:38 +09:00
Lee Dogeon
5d2146ea75
Unify getset words to GetSet
2022-07-18 05:46:57 +09:00
Alexander Guettler
b3d9e08076
Fix broken module_names in compile_dir for sub-directories
2022-06-16 11:58:48 +09:00
Jeong Yunwon
d05645ea58
update syn-ext
2022-05-28 01:41:55 +09:00
Jeong Yunwon
9b2a9d2377
TypeZoo uses &'static Py<PyType>
2022-05-27 10:35:01 +09:00
Jeong YunWon
0b01e04271
Merge pull request #3638 from youknowone/derive
...
rustpython-doc as external module
2022-05-27 08:57:31 +09:00
Jeong Yunwon
fb52694e41
PyAttributes key is PyStrInterned
2022-05-23 09:03:13 +09:00
Alexander Scharinger
1c734b0626
object.__sizeof__()
2022-05-20 08:49:16 +02:00
Jeong Yunwon
e609aca7ea
rustpython-doc as external module
...
not to archive every version of them to repository
2022-05-11 21:43:12 +09:00
Jeong YunWon
88080505e4
Add PyTypSlot::init
2022-04-27 02:22:05 +09:00
Jeong Yunwon
a7135024a5
&PyTuple and &PyTupleRef works like &[PyObjectRef]
2022-04-24 12:26:48 +09:00
Jeong Yunwon
f220394ce9
vm::{pyclass => class}
2022-04-23 09:47:53 +09:00
Jeong Yunwon
a63ad27cd4
PyContext is not a python object
2022-04-23 07:56:21 +09:00
Jeong YunWon
c103fe1310
Merge pull request #3630 from youknowone/rename-pyobjectview
...
Rename PyObjectView -> Py and PyValue -> PyPayload
2022-04-23 05:51:20 +09:00
Jeong Yunwon
66b6a06997
PyValue -> PyPayload
2022-04-23 05:20:31 +09:00
Noa
a821750e87
Stop depending on serde_json
2022-04-22 14:42:42 -05:00
Jeong Yunwon
fa22a4471d
support use for #[pyclass]
2022-04-20 03:17:56 +09:00
Jeong Yunwon
9f2540bb91
Remove manual make_class
2022-04-20 02:07:42 +09:00
Jeong Yunwon
24ea51bf71
sort order for nursery
2022-04-20 01:48:16 +09:00
Jeong Yunwon
3582eb2e19
new name collition detection
2022-04-20 01:17:33 +09:00
Jeong Yunwon
95bd172278
Run make_class always regardless it has pyattr or not
2022-04-20 00:32:15 +09:00
Jeong Yunwon
eb1f78dc0b
fix infinite-loop in derive
2022-04-19 23:30:56 +09:00
Jeong YunWon
16cedb1624
Merge pull request #3613 from youknowone/pystructseq-fromobj
...
derive(TryIntoPyStructSequence)
2022-04-19 16:20:35 +09:00
Jeong Yunwon
c35b3a653b
hide PyStructSequence from crate root
2022-04-19 15:31:33 +09:00
Jeong Yunwon
6de62d937e
module for PyStructSequence
2022-04-19 15:31:30 +09:00
Jeong Yunwon
4f531d1c6b
remove FIELD_LEN
2022-04-19 15:14:17 +09:00
Jeong Yunwon
bf18e281ed
derive macro for TryFromObject for PyStructSequence
2022-04-19 15:08:42 +09:00
Jeong Yunwon
9cbb3b4a2d
more fine-controlled #[pyattr]
2022-04-19 15:07:04 +09:00
Jeong Yunwon
fb5a66f8ad
Allow #[pyattr] on #[pyfunction]
2022-04-19 15:07:04 +09:00
Jeong Yunwon
dc19de6121
AttrName for pymodule
2022-04-19 05:10:05 +09:00
Jeong Yunwon
d5167ed890
adapt AttrName to derive pyclass
2022-04-19 05:10:05 +09:00
Jeong Yunwon
52a8cb329f
AttrName for derive
2022-04-19 04:00:00 +09:00
Jeong Yunwon
e356d51af1
move ToPy* to convert
2022-04-18 07:17:24 +09:00
Jeong Yunwon
f6d70c8176
Into{PyObject,PyException,Pyresult} -> To{..}
...
The naming convention was wrong
2022-04-18 06:04:47 +09:00
Jeong Yunwon
965c3157c8
Upgrade libraries
2022-04-18 00:09:22 +09:00
Jeong Yunwon
a5b36e1937
split pyobject.rs
2022-04-16 00:45:19 +09:00
Jeong Yunwon
49016b6a94
Fix nightly build error (issue #3614 )
...
suggested by @petrochenkov
in https://github.com/RustPython/RustPython/issues/3614#issuecomment-1099980599
2022-04-15 18:52:26 +09:00