From 2ada44b7e03141f8d2a074059698d2f0546d8359 Mon Sep 17 00:00:00 2001 From: David Hewitt <1939362+davidhewitt@users.noreply.github.com> Date: Fri, 15 Jan 2021 12:58:06 +0000 Subject: [PATCH] Apply suggestions from review Co-authored-by: Nicholas Sim --- CHANGELOG.md | 2 +- src/ffi/methodobject.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 744558cf..e2c697e2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ### Added - Add unsafe API `with_embedded_python_interpreter` to initalize a Python interpreter, execute a closure, and finalize the interpreter. [#1355](https://github.com/PyO3/pyo3/pull/1355) - Add `serde` feature to support `Serialize/Deserialize` for `Py`. [#1366](https://github.com/PyO3/pyo3/pull/1366) -- Define `_PyCFunctionFastWithKeywords()` on CPython 3.7+. [#1384](https://github.com/PyO3/pyo3/pull/1384) +- Add FFI definition `_PyCFunctionFastWithKeywords` on Python 3.7 and up. [#1384](https://github.com/PyO3/pyo3/pull/1384) ### Changed - `prepare_freethreaded_python` will no longer register an `atexit` handler to call `Py_Finalize`. [#1355](https://github.com/PyO3/pyo3/pull/1355) diff --git a/src/ffi/methodobject.rs b/src/ffi/methodobject.rs index 5e8036ae..fdf1797e 100644 --- a/src/ffi/methodobject.rs +++ b/src/ffi/methodobject.rs @@ -30,7 +30,7 @@ pub type PyCFunctionWithKeywords = unsafe extern "C" fn( kwds: *mut PyObject, ) -> *mut PyObject; -#[cfg(all(Py_3_7, not(Py_LIMITED_API)))] +#[cfg(Py_3_7)] pub type _PyCFunctionFastWithKeywords = unsafe extern "C" fn( slf: *mut PyObject, args: *const *mut PyObject,