Padraic Fanning
c8a8d324d1
Align io.py more squarely with CPython 3.10
2022-04-27 18:58:15 -04:00
Padraic Fanning
34f6d4559d
Align os.py more squarely with CPython 3.10
...
This ties up some of the loose ends that were left behind in #3500 .
2022-04-27 18:58:15 -04:00
Jeong YunWon
372ed7f737
Merge pull request #3664 from fanninpm/test-sys-settrace-3.10
...
Update test_sys_settrace.py to CPython 3.10
2022-04-27 14:41:18 +09:00
Jeong YunWon
7fc426ef6d
Merge pull request #3663 from fanninpm/test-bdb-3.10
...
Add test_bdb.py from CPython 3.10
2022-04-27 14:40:25 +09:00
Jeong YunWon
76a3dc69ff
Merge pull request #3463 from youknowone/tp-init
...
Add PyTypSlot::init
2022-04-27 14:39:29 +09:00
Padraic Fanning
a30a251a5a
Unmark passing test
2022-04-26 22:26:38 -04:00
Padraic Fanning
af79bc6e9d
Update test_sys_settrace.py to CPython 3.10
2022-04-26 22:11:58 -04:00
Noa
07ab9737cd
Mark generated lalrpop as -merge -diff
2022-04-26 20:39:16 -05:00
Padraic Fanning
c7b24b9bd8
Skip tests that don't work in a clean workspace
2022-04-26 21:35:38 -04:00
Noa
996fe65265
Merge pull request #3652 from coolreader18/speedup-parser-compilation
...
Speedup compile time for rustpython-parser
2022-04-26 20:34:50 -05:00
Padraic Fanning
aabb740529
Update bdb.py to CPython 3.10
2022-04-26 21:08:27 -04:00
Padraic Fanning
24bb2f8850
Add test_bdb.py from CPython 3.10
2022-04-26 21:07:06 -04:00
Jeong Yunwon
32aab6b148
DefaultConstructor
2022-04-27 03:29:47 +09:00
Jeong Yunwon
0325ccaa8f
Constructor/Initializer for io.rs
2022-04-27 03:13:50 +09:00
Jeong Yunwon
797e8ab724
Constructor/Initializer for PySocket
2022-04-27 02:59:16 +09:00
Jeong Yunwon
d1d932f0ca
Initializer for contextvars
2022-04-27 02:53:09 +09:00
Jeong Yunwon
dcbc4668a8
Constructor and Initializer for PyDeque
2022-04-27 02:51:42 +09:00
Jeong Yunwon
e9c76915ac
Initializer and Constructor for PySet
2022-04-27 02:51:42 +09:00
Jeong Yunwon
d4fd303584
Initializer for PyProperty
2022-04-27 02:51:42 +09:00
Jeong Yunwon
0ee3e7ee2b
Initializer for PyNamespace
2022-04-27 02:51:42 +09:00
Jeong Yunwon
11cc0165a4
Initializer for PyModule
2022-04-27 02:51:42 +09:00
Jeong Yunwon
2f009e557b
Constructor for PyList
2022-04-27 02:51:42 +09:00
Jeong Yunwon
05a833fd3b
Initializer for PyList
2022-04-27 02:51:42 +09:00
Jeong Yunwon
955c3fdfbe
Clean up PyDict
2022-04-27 02:51:42 +09:00
Jeong Yunwon
fdc95e3098
Initializer for PyDict
2022-04-27 02:51:42 +09:00
Jeong Yunwon
9585d2f60a
Constructor for PyByteArray
2022-04-27 02:51:36 +09:00
Jeong Yunwon
4e7ab31795
Initiailizer for PyByteArray
2022-04-27 02:50:07 +09:00
Jeong Yunwon
556d96dbe6
Initializer trait
2022-04-27 02:22:37 +09:00
Jeong YunWon
88080505e4
Add PyTypSlot::init
2022-04-27 02:22:05 +09:00
Jeong YunWon
a19efa21ce
Merge pull request #3662 from Snowapril/object_protocol
...
Relocate `PyObject_Generic*` into object protocol
2022-04-26 21:29:26 +09:00
snowapril
df666dd217
Remove duplicate generic_getattr in builtins::object
...
Signed-off-by: snowapril <sinjihng@gmail.com >
2022-04-26 20:51:04 +09:00
snowapril
09f7d92cb9
Relocate generic_getattr/opt from vm to object protocol
...
According to cpython docs, generic_getattr/opt is object protocol.
It is more appropriate to locate in protocol/object.rs than vm
Signed-off-by: snowapril <sinjihng@gmail.com >
2022-04-26 20:51:02 +09:00
snowapril
3b7bb5cb61
Relocate generic_setattr into object protocol
...
As generic_setattr is included in object protocol, it seems more
appropriate to relocate.
Signed-off-by: snowapril <sinjihng@gmail.com >
2022-04-26 19:51:30 +09:00
Jeong YunWon
94d377792f
Merge pull request #3661 from djrmarques/main
...
Changed the drain into into_iter on types.rs
2022-04-26 15:49:29 +09:00
David Marques
442e70df55
Changed the drain into into_iter on types.rs
2022-04-26 07:29:36 +02:00
djrmarques
53208182f8
Changed PyAttributes type to IndexMap
2022-04-25 15:04:33 +09:00
Noa
ad3dcb9e97
Fancier, more correct line hashing
2022-04-24 10:36:04 -05:00
Noa
ceb59abbd9
Speedup compile time for rustpython-parser
2022-04-24 10:36:02 -05:00
Jeong YunWon
91b5a18286
Merge pull request #3659 from youknowone/pytuple-as-slice
...
PyTuple deref to [PyObjectRef]
2022-04-24 13:54:20 +09:00
Jeong Yunwon
a7135024a5
&PyTuple and &PyTupleRef works like &[PyObjectRef]
2022-04-24 12:26:48 +09:00
Jeong Yunwon
a7ced8113b
random.seed with unwrap_or_default
2022-04-24 12:26:48 +09:00
Jeong Yunwon
dd3d3ef55b
Replace as_slice of trait impl with AsRef<[T]>
2022-04-24 12:26:48 +09:00
Jeong YunWon
666db0ff3b
Merge pull request #3657 from moreal/refactor-format
...
Refactor `__format__` calling
2022-04-24 09:52:26 +09:00
Moreal
d6236dcdcc
Unmark correct tests
2022-04-24 05:31:01 +09:00
Moreal
fcb6c3e28f
Refactor __format__ calling
2022-04-24 05:10:22 +09:00
Jeong YunWon
765f6d7c8c
Merge pull request #3656 from youknowone/rearrange
...
relocate stuffs for more fitting modules
2022-04-23 23:31:47 +09:00
Jeong Yunwon
927c206568
move slice utilities out of slice module
2022-04-23 20:59:04 +09:00
Jeong Yunwon
c4e0650ac7
VersionInfo to sys.rs
2022-04-23 20:49:31 +09:00
Jeong Yunwon
0535077631
either is a function utility
2022-04-23 20:49:31 +09:00
Jeong YunWon
d19a87fedd
Merge pull request #3654 from fanninpm/test-faulthandler
...
Add test_faulthandler.py from CPython 3.10
2022-04-23 20:29:20 +09:00