Less feature(specialization)
This commit is contained in:
parent
f946888804
commit
9e53418aad
|
@ -17,7 +17,6 @@ edition = "2018"
|
|||
[badges]
|
||||
travis-ci = { repository = "PyO3/pyo3", branch = "master" }
|
||||
appveyor = { repository = "fafhrd91/pyo3" }
|
||||
codecov = { repository = "PyO3/pyo3", branch = "master", service = "github" }
|
||||
|
||||
[dependencies]
|
||||
libc = "0.2.48"
|
||||
|
|
|
@ -51,8 +51,6 @@ features = ["extension-module"]
|
|||
**`src/lib.rs`**
|
||||
|
||||
```rust
|
||||
#![feature(specialization)]
|
||||
|
||||
use pyo3::prelude::*;
|
||||
use pyo3::wrap_pyfunction;
|
||||
|
||||
|
@ -97,8 +95,6 @@ pyo3 = "0.6.0-alpha.2"
|
|||
Example program displaying the value of `sys.version`:
|
||||
|
||||
```rust
|
||||
#![feature(specialization)]
|
||||
|
||||
use pyo3::prelude::*;
|
||||
use pyo3::types::PyDict;
|
||||
|
||||
|
|
|
@ -474,11 +474,8 @@ These correspond to the slots `tp_traverse` and `tp_clear` in the Python C API.
|
|||
as every cycle must contain at least one mutable reference.
|
||||
Example:
|
||||
```rust
|
||||
#![feature(specialization)]
|
||||
|
||||
use pyo3::prelude::*;
|
||||
|
||||
|
||||
#[pyclass]
|
||||
struct ClassWithGCSupport {
|
||||
obj: Option<PyObject>,
|
||||
|
@ -521,8 +518,6 @@ It includes two methods `__iter__` and `__next__`:
|
|||
Example:
|
||||
|
||||
```rust
|
||||
#![feature(specialization)]
|
||||
|
||||
use pyo3::prelude::*;
|
||||
|
||||
#[pyclass]
|
||||
|
|
|
@ -126,8 +126,6 @@ trait can be implemented. In that case actual exception arguments creation get d
|
|||
until `Python` object is available.
|
||||
|
||||
```rust,ignore
|
||||
#![feature(specialization)]
|
||||
|
||||
use std::net::TcpListener;
|
||||
use pyo3::{PyErr, PyResult, exc};
|
||||
|
||||
|
|
|
@ -30,8 +30,6 @@ as first parameter, the function name as second and an instance of `Python`
|
|||
as third.
|
||||
|
||||
```rust
|
||||
#![feature(specialization)]
|
||||
|
||||
use pyo3::prelude::*;
|
||||
use pyo3::wrap_pyfunction;
|
||||
|
||||
|
|
|
@ -45,8 +45,6 @@ features = ["extension-module"]
|
|||
**`src/lib.rs`**
|
||||
|
||||
```rust
|
||||
#![feature(specialization)]
|
||||
|
||||
use pyo3::prelude::*;
|
||||
use pyo3::wrap_pyfunction;
|
||||
|
||||
|
@ -91,8 +89,6 @@ pyo3 = "0.5"
|
|||
Example program displaying the value of `sys.version`:
|
||||
|
||||
```rust
|
||||
#![feature(specialization)]
|
||||
|
||||
use pyo3::prelude::*;
|
||||
use pyo3::types::PyDict;
|
||||
|
||||
|
|
|
@ -25,8 +25,6 @@ py_class!(class MyClass |py| {
|
|||
**pyo3**
|
||||
|
||||
```rust
|
||||
#![feature(specialization)]
|
||||
|
||||
use pyo3::prelude::*;
|
||||
use pyo3::PyRawObject;
|
||||
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
#![feature(specialization)]
|
||||
|
||||
use pyo3::class::*;
|
||||
use pyo3::prelude::*;
|
||||
use pyo3::types::PyObjectRef;
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
#![feature(specialization)]
|
||||
|
||||
use pyo3::class::PyBufferProtocol;
|
||||
use pyo3::exceptions::BufferError;
|
||||
use pyo3::ffi;
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
#![feature(specialization)]
|
||||
|
||||
use pyo3::prelude::*;
|
||||
|
||||
#[macro_use]
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
#![feature(specialization)]
|
||||
|
||||
use pyo3::prelude::*;
|
||||
use pyo3::PyRawObject;
|
||||
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
#![feature(specialization)]
|
||||
|
||||
use pyo3::class::PyGCProtocol;
|
||||
use pyo3::class::PyTraverseError;
|
||||
use pyo3::class::PyVisit;
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
#![feature(specialization)]
|
||||
|
||||
use pyo3::prelude::*;
|
||||
use std::isize;
|
||||
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
#![feature(specialization)]
|
||||
|
||||
use pyo3::prelude::*;
|
||||
use pyo3::types::PyDict;
|
||||
use std::isize;
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
#![feature(specialization)]
|
||||
|
||||
use pyo3::prelude::*;
|
||||
use pyo3::types::{PyDict, PyString, PyTuple, PyType};
|
||||
use pyo3::PyRawObject;
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
#![feature(specialization)]
|
||||
|
||||
use pyo3::prelude::*;
|
||||
|
||||
#[cfg(Py_3)]
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
#![feature(specialization)]
|
||||
|
||||
use pyo3::prelude::*;
|
||||
use pyo3::types::{PyDict, PyTuple};
|
||||
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
#![feature(specialization)]
|
||||
|
||||
use pyo3::prelude::*;
|
||||
use pyo3::types::PyDict;
|
||||
use pyo3::wrap_pyfunction;
|
||||
|
|
Loading…
Reference in New Issue