Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove typying #2205

Merged
merged 1 commit into from Mar 4, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions guide/src/memory.md
Expand Up @@ -130,7 +130,7 @@ we are *not* holding the GIL?

```rust
let hello: Py<PyString> = Python::with_gil(|py| {
Py<PyString> = py.eval("\"Hello World!\"", None, None)?.extract())
py.eval("\"Hello World!\"", None, None)?.extract())
})?;
// Do some stuff...
// Now sometime later in the program we want to access `hello`.
Expand All @@ -155,7 +155,7 @@ We can avoid the delay in releasing memory if we are careful to drop the

```rust
let hello: Py<PyString> = Python::with_gil(|py| {
Py<PyString> = py.eval("\"Hello World!\"", None, None)?.extract())
py.eval("\"Hello World!\"", None, None)?.extract())
})?;
// Do some stuff...
// Now sometime later in the program:
Expand All @@ -173,7 +173,7 @@ until the GIL is dropped.

```rust
let hello: Py<PyString> = Python::with_gil(|py| {
Py<PyString> = py.eval("\"Hello World!\"", None, None)?.extract())
py.eval("\"Hello World!\"", None, None)?.extract())
})?;
// Do some stuff...
// Now sometime later in the program:
Expand Down