Compare commits
1 Commits
master
...
release-0.
Author | SHA1 | Date |
---|---|---|
Paul Stemmet | 42bf29b6f2 |
|
@ -112,6 +112,9 @@ py-clone = []
|
|||
# Optimizes PyObject to Vec conversion and so on.
|
||||
nightly = []
|
||||
|
||||
# Disables the checks for use in subinterpreters.
|
||||
unsafe-allow-subinterpreters = []
|
||||
|
||||
# Activates all additional features
|
||||
# This is mostly intended for testing purposes - activating *all* of these isn't particularly useful.
|
||||
full = [
|
||||
|
|
|
@ -107,7 +107,7 @@ impl ModuleDef {
|
|||
// that static data is not reused across interpreters.
|
||||
//
|
||||
// PyPy does not have subinterpreters, so no need to check interpreter ID.
|
||||
#[cfg(not(any(PyPy, GraalPy)))]
|
||||
#[cfg(not(any(PyPy, GraalPy, feature = "unsafe-allow-subinterpreters")))]
|
||||
{
|
||||
// PyInterpreterState_Get is only available on 3.9 and later, but is missing
|
||||
// from python3.dll for Windows stable API on 3.9
|
||||
|
|
Loading…
Reference in New Issue