mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-02 19:39:49 +09:00
Introduce AsPyObject to replace IdProtocol
This commit is contained in:
@@ -33,14 +33,13 @@ mod array {
|
||||
AsBuffer, AsMapping, Comparable, Constructor, IterNext, IterNextIterable, Iterable,
|
||||
PyComparisonOp,
|
||||
},
|
||||
IdProtocol, PyObject, PyObjectRef, PyObjectView, PyObjectWrap, PyRef, PyResult,
|
||||
PyValue, TryFromBorrowedObject, TryFromObject, TypeProtocol, VirtualMachine,
|
||||
AsPyObject, PyObject, PyObjectRef, PyObjectView, PyRef, PyResult, PyValue,
|
||||
TryFromBorrowedObject, TryFromObject, TypeProtocol, VirtualMachine,
|
||||
},
|
||||
};
|
||||
use itertools::Itertools;
|
||||
use num_traits::ToPrimitive;
|
||||
use std::cmp::Ordering;
|
||||
use std::{fmt, os::raw};
|
||||
use std::{cmp::Ordering, fmt, os::raw};
|
||||
|
||||
macro_rules! def_array_enum {
|
||||
($(($n:ident, $t:ty, $c:literal, $scode:literal)),*$(,)?) => {
|
||||
|
||||
@@ -9,7 +9,7 @@ mod _json {
|
||||
function::{IntoPyObject, IntoPyResult, OptionalArg},
|
||||
protocol::PyIterReturn,
|
||||
types::{Callable, Constructor},
|
||||
IdProtocol, PyObjectRef, PyObjectView, PyResult, PyValue, VirtualMachine,
|
||||
AsPyObject, PyObjectRef, PyObjectView, PyResult, PyValue, VirtualMachine,
|
||||
};
|
||||
use num_bigint::BigInt;
|
||||
use std::str::FromStr;
|
||||
|
||||
Reference in New Issue
Block a user