Skip to content

Commit 27b4c8a

Browse files
authored
Merge pull request #293 from tiagoantao/master
upgrade version reference
2 parents 15f5df4 + a5de9dc commit 27b4c8a

5 files changed

Lines changed: 16 additions & 16 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ name = "string_sum"
4343
crate-type = ["cdylib"]
4444

4545
[dependencies.pyo3]
46-
version = "0.4"
46+
version = "0.5"
4747
features = ["extension-module"]
4848
```
4949

@@ -92,7 +92,7 @@ Add `pyo3` this to your `Cargo.toml`:
9292

9393
```toml
9494
[dependencies]
95-
pyo3 = "0.4"
95+
pyo3 = "0.5"
9696
```
9797

9898
Example program displaying the value of `sys.version`:

guide/src/building-and-distribution.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ If you have e.g. a library crate and a profiling crate alongside, you need to us
1414

1515
```toml
1616
[dependencies]
17-
pyo3 = "0.5.0"
17+
pyo3 = "0.5.2"
1818

1919
[lib]
2020
name = "hyperjson"
@@ -29,7 +29,7 @@ And this in the profiling crate:
2929
```toml
3030
[dependencies]
3131
my_main_crate = { path = "..", default-features = false }
32-
pyo3 = "0.5.0"
32+
pyo3 = "0.5.2"
3333
```
3434

3535
On linux/mac you might have to change `LD_LIBRARY_PATH` to include libpython, while on windows you might need to set `LIB` to include `pythonxy.lib` (where x and y are major and minor version), which is normally either in the `libs` or `Lib` folder of a python installation.

guide/src/class.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ with `#[pyproto]` attribute.
429429

430430
### Basic object customization
431431

432-
[`PyObjectProtocol`](https://docs.rs/pyo3/0.2.7/class/basic/trait.PyObjectProtocol.html) trait provide several basic customizations.
432+
[`PyObjectProtocol`](https://docs.rs/pyo3/0.5.2/class/basic/trait.PyObjectProtocol.html) trait provide several basic customizations.
433433

434434
#### Attribute access
435435

@@ -493,7 +493,7 @@ Each methods corresponds to python's `self.attr`, `self.attr = value` and `del s
493493
If your type owns references to other python objects, you will need to
494494
integrate with Python's garbage collector so that the GC is aware of
495495
those references.
496-
To do this, implement [`PyGCProtocol`](https://docs.rs/pyo3/0.2.7/class/gc/trait.PyGCProtocol.html) trait for your struct.
496+
To do this, implement [`PyGCProtocol`](https://docs.rs/pyo3/0.5.2/class/gc/trait.PyGCProtocol.html) trait for your struct.
497497
It includes two methods `__traverse__` and `__clear__`.
498498
These correspond to the slots `tp_traverse` and `tp_clear` in the Python C API.
499499
`__traverse__` must call `visit.call()` for each reference to another python object.
@@ -540,7 +540,7 @@ collector, and it is possible to track them with `gc` module methods.
540540
### Iterator Types
541541

542542
Iterators can be defined using the
543-
[`PyIterProtocol`](https://docs.rs/pyo3/0.2.7/class/iter/trait.PyIterProtocol.html) trait.
543+
[`PyIterProtocol`](https://docs.rs/pyo3/0.5.2/class/iter/trait.PyIterProtocol.html) trait.
544544
It includes two methods `__iter__` and `__next__`:
545545
* `fn __iter__(&mut self) -> PyResult<impl IntoPyObject>`
546546
* `fn __next__(&mut self) -> PyResult<Option<impl IntoPyObject>>`

guide/src/conversions.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,10 @@ fn main() {
121121

122122
TODO
123123

124-
[`ToPyObject`]: https://docs.rs/pyo3/0.2.7/trait.ToPyObject.html
125-
[IntoPyObject]: https://docs.rs/pyo3/0.2.7/trait.IntoPyObject.html
126-
[PyObject]: https://docs.rs/pyo3/0.2.7/struct.PyObject.html
127-
[IntoPyTuple]: https://docs.rs/pyo3/0.2.7/trait.IntoPyTuple.html
128-
[PyTuple]: https://docs.rs/pyo3/0.2.7/struct.PyTuple.html
129-
[ObjectProtocol]: https://docs.rs/pyo3/0.2.7/trait.ObjectProtocol.html
130-
[IntoPyDict]: https://docs.rs/pyo3/0.2.7/trait.IntoPyDict.html
124+
[`ToPyObject`]: https://docs.rs/pyo3/0.5.2/trait.ToPyObject.html
125+
[IntoPyObject]: https://docs.rs/pyo3/0.5.2/trait.IntoPyObject.html
126+
[PyObject]: https://docs.rs/pyo3/0.5.2/struct.PyObject.html
127+
[IntoPyTuple]: https://docs.rs/pyo3/0.5.2/trait.IntoPyTuple.html
128+
[PyTuple]: https://docs.rs/pyo3/0.5.2/struct.PyTuple.html
129+
[ObjectProtocol]: https://docs.rs/pyo3/0.5.2/trait.ObjectProtocol.html
130+
[IntoPyDict]: https://docs.rs/pyo3/0.5.2/trait.IntoPyDict.html

guide/src/get_started.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ name = "rust_py"
2626
crate-type = ["cdylib"]
2727

2828
[dependencies.pyo3]
29-
version = "0.3"
29+
version = "0.5"
3030
features = ["extension-module"]
3131
```
3232

@@ -75,7 +75,7 @@ Add `pyo3` this to your `Cargo.toml`:
7575

7676
```toml
7777
[dependencies]
78-
pyo3 = "0.3"
78+
pyo3 = "0.5"
7979
```
8080

8181
Example program displaying the value of `sys.version`:

0 commit comments

Comments
 (0)