https://github.com/python/cpython/commit/622176513ef7dc41faaa8403b09b799bc5785aee
commit: 622176513ef7dc41faaa8403b09b799bc5785aee
branch: main
author: Pablo Galindo Salgado <[email protected]>
committer: pablogsal <[email protected]>
date: 2025-04-25T16:38:48Z
summary:
gh-132950: Check for Py_SUPPORTS_REMOTE_DEBUG in sys.is_remote_debug_enabled
(#132959)
files:
M Python/sysmodule.c
diff --git a/Python/sysmodule.c b/Python/sysmodule.c
index 1a7b01bf97f8f8..e650444108e8f7 100644
--- a/Python/sysmodule.c
+++ b/Python/sysmodule.c
@@ -2440,7 +2440,7 @@ static PyObject *
sys_is_remote_debug_enabled_impl(PyObject *module)
/*[clinic end generated code: output=7ca3d38bdd5935eb input=7335c4a2fe8cf4f3]*/
{
-#ifndef Py_REMOTE_DEBUG
+#if !defined(Py_REMOTE_DEBUG) || !defined(Py_SUPPORTS_REMOTE_DEBUG)
Py_RETURN_FALSE;
#else
const PyConfig *config = _Py_GetConfig();
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]