Skip to content

Commit

Permalink
docs: note with_gil auto-creates thread state
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhewitt committed Aug 23, 2022
1 parent fb05e1d commit f7ebda8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/marker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,10 @@ impl Python<'_> {
#[cfg_attr(PyPy, doc = "`prepare_freethreaded_python`")]
/// for details.
///
/// If the current thread does not yet have a Python "thread state" associated with it,
/// a new one will be automatically created before `F` is executed and destroyed after `F`
/// completes.
///
/// # Panics
///
/// - If the [`auto-initialize`] feature is not enabled and the Python interpreter is not
Expand Down

0 comments on commit f7ebda8

Please sign in to comment.