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 |
|
coolreader18
|
8f036b3269
|
quickfix Lib/test list test_extend
|
2020-01-12 00:06:51 -06:00 |
|
coolreader18
|
098393d4d6
|
Add __length_hint__ to a bunch of iterators
|
2020-01-10 18:24:23 +00:00 |
|
coolreader18
|
fc3ac169d0
|
Add length_hint functionality
|
2020-01-10 18:24:22 +00:00 |
|
Jeong YunWon
|
9f4f8ad0ec
|
PyTuple::elements into private
|
2020-01-06 02:34:56 +09:00 |
|
coolreader18
|
777542f7ec
|
Directly instantiate exceptions in the vm.new_*_error functions
|
2019-12-28 01:31:24 -06:00 |
|
Noah
|
97c8d11092
|
Make PyResult<T> = Result<T, PyBaseExceptionRef>
|
2019-12-27 11:22:52 -06:00 |
|
Noah
|
cd726a2818
|
Cleanup exceptions a bit
|
2019-12-27 11:17:26 -06:00 |
|
Windel Bouwman
|
799541b0b1
|
Merge pull request #1619 from RustPython/coolreader18/time-structseq
Make time.struct_time a struct_sequence
|
2019-12-04 16:09:00 +01:00 |
|
coolreader18
|
163127b5e1
|
Make KeyError and IndexError subclasses of LookupError
|
2019-12-03 21:39:34 -06:00 |
|
coolreader18
|
68e9c12b9a
|
Make time.struct_time a struct_sequence
|
2019-12-02 18:16:28 -06:00 |
|
coolreader18
|
2ea34c8d83
|
Make vm.extract_elements generic
|
2019-10-23 17:53:51 +00:00 |
|
coolreader18
|
672f146de4
|
Properly implement gen.throw()
|
2019-10-15 14:00:08 -05:00 |
|
Jeong YunWon
|
6c0f852b62
|
Refactor pymethod return types to be smaller as possible
|
2019-10-11 03:27:23 +09:00 |
|
Windel Bouwman
|
589c431c8c
|
Merge master branch
|
2019-08-15 18:59:29 +02:00 |
|
Marcin Pajkowski
|
e65e9ff7c3
|
Make func_ref an &PyObjectRef
|
2019-08-15 13:45:47 +02:00 |
|
Windel Bouwman
|
d06dec77ea
|
Attempt to reduce the size of the pyobject.rs files by splitting out builtin types.
|
2019-08-14 19:08:47 +02:00 |
|
Aviv Palivoda
|
60e799727f
|
Support reversed on sequence
|
2019-06-14 15:25:24 +03:00 |
|
Maxim Kurnikov
|
8a5182a8a1
|
make get_method_or_type_error() error message lazy
|
2019-06-07 16:08:37 +03:00 |
|
Maxim Kurnikov
|
3bfd66bb89
|
make some exception messages more compatible with CPython, split get_method() into two methods and make raising TypeError more explicit for get_method() errors
|
2019-06-03 19:46:32 +03:00 |
|
Adrian Wielgosik
|
c7fd54e809
|
Convert iterators to pyclass macros
|
2019-05-01 21:26:37 +02:00 |
|
Adrian Wielgosik
|
de5b1c4055
|
Support iter() for types with only __getitem__
|
2019-04-01 19:45:16 +02:00 |
|
Adrian Wielgosik
|
c918e9d5d3
|
Split iterators into separate types
|
2019-04-01 19:45:14 +02:00 |
|
Adrian Wielgosik
|
bbfca26b27
|
Move PyIteratorValue to objiter.rs
|
2019-04-01 19:45:10 +02:00 |
|
Adrian Wielgosik
|
cba8aa9be5
|
Drop iter_type_init, explicitly define __iter__ for iterators
|
2019-04-01 19:45:07 +02:00 |
|
Adrian Wielgosik
|
016ecf204d
|
Move iterator __contains__ to 'in' implementation
|
2019-04-01 19:45:00 +02:00 |
|
Joey Hain
|
cc4f3fdb40
|
Clean up TypeProtocol
|
2019-03-25 19:18:01 -07:00 |
|
Windel Bouwman
|
fa8d3524bf
|
Use extend_class macro even more
|
2019-03-23 17:49:49 +01:00 |
|
ben
|
c1d5ce715f
|
Change isinstance/issubclass to accept PyClassRef instead of PyCObject.
Also changed PyValue::class to return a PyClassRef.
|
2019-03-23 19:32:31 +13:00 |
|
ben
|
5c7812734d
|
Use more specific ref type than PyObjectRef in PyContext
|
2019-03-23 13:00:12 +13:00 |
|
coolreader18
|
a9051ab462
|
Convert all &mut VirtualMachine to &VirtualMachine
|
2019-03-22 01:48:14 -05:00 |
|
Joey
|
7bfd2e6e84
|
Move function items out of pyobject module
|
2019-03-15 21:27:11 -07:00 |
|
Joey
|
157d18d7a1
|
Convert iterator
|
2019-03-09 14:45:55 -08:00 |
|
Joey
|
1bcbb28715
|
Convert list and tuple to Any payload
|
2019-03-07 21:10:43 -08:00 |
|
Joey Hain
|
2d71f6de28
|
bytes and bytearray
|
2019-03-03 20:01:07 -08:00 |
|
Joey Hain
|
e7fb116210
|
Convert more objects to Any payload
|
2019-03-02 13:27:00 -08:00 |
|
Windel Bouwman
|
8f52e15d32
|
Minor clippy fixes.
|
2019-03-02 11:14:35 +01:00 |
|
Joey Hain
|
e959908a49
|
Fix iterator
|
2019-02-25 21:26:15 -08:00 |
|
Joey Hain
|
f10fa6db44
|
Remove outer RefCell from PyObjectRef
|
2019-02-25 21:01:37 -08:00 |
|
Joey
|
df76ffe116
|
Replace most relative imports with 2018-style crate
|
2019-02-20 08:50:53 -08:00 |
|
Adam Kelly
|
67710d6e28
|
Don't call __eq__ directly.
Doing so creates a very confusing error when NotImplemented in returned.
|
2019-02-11 21:11:33 +00:00 |
|
Windel Bouwman
|
ecea7035b0
|
Merge branch 'master' into iter_doc
|
2019-02-09 19:37:17 +01:00 |
|
ben
|
907dfb6770
|
Add slice type and use BigInts in slice payload.
|
2019-02-09 12:07:04 +13:00 |
|
ZapAnton
|
e6d638d43f
|
iter type: Added __doc__
|
2019-02-08 18:56:34 +03:00 |
|
ben
|
5896f049ef
|
Add enumerate and zip types and made them lazy.
|
2019-02-08 20:57:16 +13:00 |
|
Adam Kelly
|
fd344ec1e0
|
Remove unnecessary to_bigint().unwrap() everywhere.
|
2019-02-06 17:38:01 +00:00 |
|
Windel Bouwman
|
819e5a01e4
|
Merge pull request #354 from HomerMcMillan/bytes_iter
Add bytes.__iter__
|
2019-02-06 07:45:10 +01:00 |
|
Homer McMillan
|
35a06bc428
|
Add bytes.__iter__
|
2019-02-05 21:44:14 -05:00 |
|
ben
|
6c8ec39882
|
Make map and filter into proper types
|
2019-02-06 12:45:14 +13:00 |
|