Remove mention of Python 2

This commit is contained in:
Joel Höner 2019-07-27 04:45:53 +02:00 committed by GitHub
parent 20534ec22a
commit eb34ce588b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -53,9 +53,7 @@ In order to make the function signature available to Python to be retrieved via
formatted like in the example below. Please note that the newline after the formatted like in the example below. Please note that the newline after the
`--` is mandatory. The `/` signifies the end of positional-only arguments. This `--` is mandatory. The `/` signifies the end of positional-only arguments. This
is not a feature of this library in particular, but the general format used by is not a feature of this library in particular, but the general format used by
CPython for annotating signatures of built-in functions. Function signatures for CPython for annotating signatures of built-in functions.
built-ins are new in Python 3 — in Python 2, they are simply considered to be a
part of the docstring.
```rust ```rust
use pyo3::prelude::*; use pyo3::prelude::*;