Noah
|
99104faaf7
|
Re-export pyobject::* from the root of the crate
|
2021-05-20 10:24:07 -05:00 |
|
Noah
|
6d7eae98b8
|
Add iter, iternext slots & Allow deleting slot magic methods
|
2020-11-17 23:47:48 +09:00 |
|
Jeong YunWon
|
4add0220ae
|
PyValue::class() returns ref
|
2020-10-20 02:29:20 +09:00 |
|
Jeong YunWon
|
34a2038e17
|
Use StaticType::static_class() rather than vm.class
|
2020-10-20 01:47:53 +09:00 |
|
Jeong YunWon
|
e823d95ce5
|
split vm::builtins::iter utility functions to vm::iterator
|
2020-10-13 15:42:11 +09:00 |
|
Jeong YunWon
|
9e6dfca9e9
|
Fix build with new builtins path
|
2020-10-11 21:16:16 +09:00 |
|
Jeong YunWon
|
699c801354
|
Fix sequence index utilities not to use get_ prefix
|
2020-10-10 13:40:02 +09:00 |
|
Jeong YunWon
|
6d8c987c45
|
vm._len and objsequence.rs -> sliceable.rs
|
2020-10-10 13:39:12 +09:00 |
|
Noah
|
e2bc53f625
|
Merge pull request #2239 from RustPython/coolreader18/unified-common-locks
Unified lock types for rustpython_common
|
2020-10-07 19:36:06 -05:00 |
|
Noah
|
acd0bf5434
|
Make the FromArgs derive less verbose
|
2020-10-01 17:42:07 -05:00 |
|
Noah
|
d8a73ead42
|
Make it unnecessary to import PyClassImpl for #[pymodule]
|
2020-09-30 11:33:22 -05:00 |
|
Noah
|
dbbdd75b31
|
Rename rustpython_common::{cell -> lock}
|
2020-09-26 23:39:10 -05:00 |
|
Jeong YunWon
|
59db19d1ea
|
PyClass -> PyType
|
2020-09-26 07:32:38 +09:00 |
|
Jeong YunWon
|
958fe7b194
|
remove cmp clone
|
2020-09-26 02:51:50 +09:00 |
|
Noah
|
2f03db9872
|
Fix some silly errors
|
2020-09-21 10:55:15 -05:00 |
|
Noah
|
fc456ac526
|
Finish rest of Comparable impls
|
2020-09-21 10:55:15 -05:00 |
|
Noah
|
63597db1d1
|
Add subscript getters for collections.deque
|
2020-09-06 20:19:18 -05:00 |
|
Jeong YunWon
|
d422de6f00
|
Rework derive and rewrite pymodule.rs
|
2020-08-23 18:24:46 +09:00 |
|
Noah
|
ee124eb85d
|
Make ReprGuard vm-local
|
2020-08-11 11:07:51 -05:00 |
|
Noah
|
39303f0567
|
Transition more files to use PyMutex/PyRwLock
|
2020-07-25 15:22:03 -04:00 |
|
Jeong YunWon
|
b677b88bdd
|
sequence::cmp take DynPyIter instead of SimpleSeq
to avoid duplicated code generation for Box operation
|
2020-07-21 21:48:46 +09:00 |
|
Jeong YunWon
|
f40b19927f
|
Simplify SimpleSeq
|
2020-07-20 05:57:06 +09:00 |
|
Jeong YunWon
|
838abb8b76
|
Add collections.deque.__contains__
|
2020-07-08 03:30:40 +09:00 |
|
Noah
|
ebab829f60
|
Switch to using parking_lot::Mutex instead of std::sync::Mutex
|
2020-07-04 22:58:18 -05:00 |
|
Aviv Palivoda
|
fb5862da91
|
Remove ThreadSafe trait
|
2020-05-16 13:58:10 +03:00 |
|
Aviv Palivoda
|
94e93f7262
|
Make PyDeque, PyDequeIterator ThreadSafe
|
2020-05-09 11:36:44 +03:00 |
|
Jeong YunWon
|
0004fa3b80
|
pymodule _collections
|
2020-04-27 00:11:51 +09:00 |
|
Jeong YunWon
|
6ddb690e09
|
Remove _vm parameter when it is not required
|
2020-02-06 11:07:51 +09:00 |
|
Jeong YunWon
|
1bac582921
|
&str::to_string -> &str::to_owned for literals
|
2020-02-05 22:55:33 +09:00 |
|
Jeong YunWon
|
7fd92fcc71
|
Py_TPFLAGS_BASETYPE
|
2020-01-30 16:32:09 +09:00 |
|
Jeong YunWon
|
8c7e01b4f6
|
pyslot guess slot name from function name
|
2020-01-15 10:28:39 +09:00 |
|
Jeong YunWon
|
5e2035f979
|
remove unnessessary pub
|
2020-01-08 11:04:17 +09:00 |
|
Jeong YunWon
|
5a3937fd15
|
Refactor deque and fix comparison bug
|
2020-01-08 02:20:41 +09:00 |
|
Jeong YunWon
|
226ebfa0c6
|
vm::sequence for SimpleSeq utilities
|
2020-01-07 22:24:05 +09:00 |
|
Jeong YunWon
|
18fcd99584
|
SimpleSeq for PyDeque
|
2020-01-07 22:11:26 +09:00 |
|
Jeong YunWon
|
a54c98de3f
|
property setter return PyResult<()> instead of PyResult
|
2019-12-27 02:09:58 +09:00 |
|
Jeong YunWon
|
16c3c78b69
|
introduce and adapt vm.identical_or_equal to test is or else __eq__
|
2019-10-12 17:53:26 +09:00 |
|
coolreader18
|
277ebb240f
|
Add iteration to collections.deque
|
2019-10-11 15:47:29 -05:00 |
|
Noah
|
d22cac2dd8
|
Rename new slots to tp_new
|
2019-09-29 23:14:37 -05:00 |
|
coolreader18
|
c46b5b50bd
|
Fix weirdness with type.__new__()/type()/metaclass.__new__()
|
2019-09-29 23:14:31 -05:00 |
|
Noah
|
a429b09a0b
|
Allow match_class match expressions without parens around the target
|
2019-09-19 20:07:18 +00:00 |
|
Noah
|
dfeeda1c4c
|
Match an actual match expression in match_class!
|
2019-09-19 18:27:34 +00:00 |
|
coolreader18
|
1c1440eb78
|
Add __len__ to deque
|
2019-07-07 15:38:57 -05:00 |
|
coolreader18
|
deca878c4b
|
Use VecDeque::rotate_{left,right}
|
2019-07-07 15:38:52 -05:00 |
|
coolreader18
|
d891c87c4f
|
Add maxlen as a named arg
|
2019-07-07 15:38:49 -05:00 |
|
coolreader18
|
9d3fa18ec8
|
Add __mul__ to deque
|
2019-07-07 15:38:47 -05:00 |
|
coolreader18
|
1c1ee5bb69
|
Add setter for maxlen
|
2019-07-07 15:38:46 -05:00 |
|
coolreader18
|
5153ad52ca
|
Add cmp methods to deque
|
2019-07-07 15:38:44 -05:00 |
|
coolreader18
|
805d536fa8
|
Add repr to deque
|
2019-07-07 15:38:43 -05:00 |
|
coolreader18
|
5956bcbf2c
|
Add maxlen argument and getter
|
2019-07-07 15:38:43 -05:00 |
|