Jeong YunWon
|
98a62c581c
|
Universal mechanism for Iterable/PyIter
|
2021-09-25 03:04:41 +09:00 |
|
Jeong YunWon
|
0d09bc7285
|
derive(PyValue) not to depend on local context
|
2021-09-24 20:41:11 +09:00 |
|
Jeong YunWon
|
ffef73c1d7
|
split Arg{Callble,Iterable} from pyobject.rs
|
2021-09-22 21:01:44 +09:00 |
|
Jeong YunWon
|
a5309a7888
|
Rename Py{Callable, Iterable} to Arg{..}
which were not a python object but just argument helper
|
2021-09-22 20:58:26 +09:00 |
|
Jeong YunWon
|
96c9d9ec16
|
Group use for vm stuff to prevent reorder for rustpython_stdlib
|
2021-09-22 12:08:17 +09:00 |
|
Noa
|
f357a958ca
|
Merge pull request #3107 from youknowone/try-to
try to types utility functions to PyObjectRef methods
|
2021-09-21 20:20:03 -05:00 |
|
Jeong YunWon
|
540b9c316a
|
Export common conversion parameter type IntoPy*
|
2021-09-22 03:38:09 +09:00 |
|
Jeong YunWon
|
bc2bb1023d
|
try to types utility functions to PyObjectRef methods
|
2021-09-22 03:35:12 +09:00 |
|
Jeong YunWon
|
2952f6e7c6
|
extract wchar_t definition to rustpython-common
|
2021-09-22 03:30:41 +09:00 |
|
Dean Li
|
88e869a4da
|
impl #[derive(PyValue)] for static_type
|
2021-09-21 21:35:48 +08:00 |
|
Kangzhi Shi
|
dcb0698c99
|
Impl array.tofile
|
2021-09-16 15:22:59 +02:00 |
|
Steve Shi
|
c064118e6b
|
Impl array.fromfile (#3065)
|
2021-09-16 03:18:13 +09:00 |
|
Jeong YunWon
|
f7289ddabd
|
PyBuffer overhaul
PyBuffer doesn't require vtable access for options
maintaining internal using manual Rc model
|
2021-09-14 02:22:41 +09:00 |
|
Lee Dogeon
|
63b1696458
|
Derive name from tp_name
|
2021-09-09 00:07:36 +09:00 |
|
eldpswp99
|
55709b71b6
|
implement SlotConstructor for every class
|
2021-09-04 20:18:13 +09:00 |
|
Frank King
|
c1aaac02ed
|
Implement array::_array_reconstructor
|
2021-08-30 22:21:53 +08:00 |
|
Frank King
|
736096976c
|
reformat array.rs to be mod array { ... }
|
2021-08-30 22:21:53 +08:00 |
|
jfh
|
97b8d7ca7b
|
Add checking for repeat on sequences.
|
2021-08-29 17:43:47 +03:00 |
|
jfh
|
ab5ccd6beb
|
Use SequenceIndex instead of Either.
|
2021-08-24 18:11:49 +03:00 |
|
jfh
|
92491906f5
|
Fixes panic when empty array is indexed.
|
2021-08-24 16:24:21 +03:00 |
|
Frank King
|
e652ae8fc0
|
Support unicode array type.
|
2021-08-21 20:18:05 +08:00 |
|
Jeong YunWon
|
4d4e39af20
|
Rename PyBytesLike, PyRwBytesLike, BufOrStr to Arg-prefixed proper names
|
2021-08-14 13:39:06 +09:00 |
|
Jeong YunWon
|
e594090629
|
BufferProtocol -> AsBuffer
|
2021-08-14 13:39:06 +09:00 |
|
Jeong YunWon
|
888b3822b7
|
Give a sole module for buffer protocol
|
2021-08-14 13:39:06 +09:00 |
|
Jeong YunWon
|
4e60bcd741
|
clean up #[pymethod(magic)]
|
2021-08-12 06:44:52 +09:00 |
|
Jeong YunWon
|
03a9d6058b
|
Refactor Buffer Protocol (mostly namings) (#2849)
* Refactor Buffer protocol into RustPython convention
|
2021-08-11 20:11:31 +03:00 |
|
Jeong YunWon
|
ff4efd0f60
|
Fix unnessessary borrow
|
2021-07-30 02:32:16 +09:00 |
|
Noah
|
fbbe4a68d2
|
Rename borrow_list to borrow_vec
|
2021-05-20 17:47:17 -05:00 |
|
Noah
|
3d9812e748
|
Remove remaining borrow_value() uses
|
2021-05-20 10:30:42 -05:00 |
|
Noah
|
1eae2c8a12
|
Replace bufferish-types.borrow_value() with direct getters
|
2021-05-20 10:29:48 -05:00 |
|
Noah
|
516eead348
|
Replace PyStr.borrow_value() with .as_str()
|
2021-05-20 10:29:48 -05:00 |
|
Noah
|
376ce87b76
|
Move Either to crate::utils
|
2021-05-20 10:29:48 -05:00 |
|
Noah
|
99104faaf7
|
Re-export pyobject::* from the root of the crate
|
2021-05-20 10:24:07 -05:00 |
|
Kangzhi Shi
|
8522d120e5
|
fix array from bytes
|
2021-04-16 09:17:13 +02:00 |
|
Noah
|
6d7eae98b8
|
Add iter, iternext slots & Allow deleting slot magic methods
|
2020-11-17 23:47:48 +09:00 |
|
Noah
|
a6805a5291
|
Make get_options() return &BufferOptions
|
2020-11-09 10:32:25 -06:00 |
|
Noah
|
a1ca535f78
|
Make bufferoptions.format a Cow<'static, str>
|
2020-11-06 11:11:06 -06:00 |
|
Kangzhi Shi
|
eaf4bad2d1
|
fix array with float
|
2020-10-27 19:18:18 +02:00 |
|
Noah
|
026f396e98
|
Use std::os::raw::c_* instead of libc::c_* for wasm compat
|
2020-10-26 12:14:00 -05:00 |
|
Noah
|
0f84bd4070
|
Update pystruct + array
|
2020-10-26 12:13:24 -05: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 |
|
Kangzhi Shi
|
c2d46b9df3
|
remove comment
|
2020-10-16 07:30:59 +02:00 |
|
Kangzhi Shi
|
c3484c612c
|
fix buffer resizable non-thread safe
|
2020-10-15 17:47:32 +02: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
|
a089c9b6d3
|
TypeProcotol::lease_class() -> TypeProtocol::class()
|
2020-10-11 09:11:58 +09:00 |
|
Kangzhi Shi
|
cf3572385c
|
Fix more to pass unittest
|
2020-10-10 17:00:57 +09:00 |
|
Kangzhi Shi
|
e1ddbda4fc
|
fix unittest test_array.test_buffer
|
2020-10-10 16:59:44 +09:00 |
|
Kangzhi Shi
|
499d99794c
|
Implement Buffer Protocol
|
2020-10-10 16:57:19 +09:00 |
|