Skip to content

Commit

Permalink
Add note about garbage collection on PyPy
Browse files Browse the repository at this point in the history
  • Loading branch information
adriangb authored and davidhewitt committed Mar 23, 2023
1 parent 189b69e commit ba364e1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions guide/src/class/protocols.md
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,8 @@ impl ClassWithGCSupport {
}
```

> Note: these methods are part of the C API, PyPy does not necessarily honor them. If you are building for PyPy you should measure memory consumption to make sure you do not have runaway memory growth. See [this issue on the PyPy bug tracker](https://foss.heptapod.net/pypy/pypy/-/issues/3899).
[`IterNextOutput`]: {{#PYO3_DOCS_URL}}/pyo3/class/iter/enum.IterNextOutput.html
[`PySequence`]: {{#PYO3_DOCS_URL}}/pyo3/types/struct.PySequence.html
[`CompareOp::matches`]: {{#PYO3_DOCS_URL}}/pyo3/pyclass/enum.CompareOp.html#method.matches

0 comments on commit ba364e1

Please sign in to comment.