Merge pull request #556 from athre0z/patch-1

Remove mention of Python 2
This commit is contained in:
Yuji Kanagawa 2019-07-27 19:07:02 +09:00 committed by GitHub
commit 382c79ec31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

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::*;