@@ -243,40 +243,40 @@ extern void _PyInterpreterState_IDDecref(PyInterpreterState *);
243243
244244extern const PyConfig * _PyInterpreterState_GetConfig (PyInterpreterState * interp );
245245
246- /* Get a copy of the current interpreter configuration.
247-
248- Return 0 on success. Raise an exception and return -1 on error.
249-
250- The caller must initialize 'config', using PyConfig_InitPythonConfig()
251- for example.
252-
253- Python must be preinitialized to call this method.
254- The caller must hold the GIL.
255-
256- Once done with the configuration, PyConfig_Clear() must be called to clear
257- it.
258-
259- Export for '_testinternalcapi' shared extension. */
246+ // Get a copy of the current interpreter configuration.
247+ //
248+ // Return 0 on success. Raise an exception and return -1 on error.
249+ //
250+ // The caller must initialize 'config', using PyConfig_InitPythonConfig()
251+ // for example.
252+ //
253+ // Python must be preinitialized to call this method.
254+ // The caller must hold the GIL.
255+ //
256+ // Once done with the configuration, PyConfig_Clear() must be called to clear
257+ // it.
258+ //
259+ // Export for '_testinternalcapi' shared extension.
260260PyAPI_FUNC (int ) _PyInterpreterState_GetConfigCopy (
261261 struct PyConfig * config );
262262
263- /* Set the configuration of the current interpreter.
264-
265- This function should be called during or just after the Python
266- initialization.
267-
268- Update the sys module with the new configuration. If the sys module was
269- modified directly after the Python initialization, these changes are lost.
270-
271- Some configuration like faulthandler or warnoptions can be updated in the
272- configuration, but don't reconfigure Python (don't enable/disable
273- faulthandler and don't reconfigure warnings filters).
274-
275- Return 0 on success. Raise an exception and return -1 on error.
276-
277- The configuration should come from _PyInterpreterState_GetConfigCopy().
278-
279- Export for '_testinternalcapi' shared extension. */
263+ // Set the configuration of the current interpreter.
264+ //
265+ // This function should be called during or just after the Python
266+ // initialization.
267+ //
268+ // Update the sys module with the new configuration. If the sys module was
269+ // modified directly after the Python initialization, these changes are lost.
270+ //
271+ // Some configuration like faulthandler or warnoptions can be updated in the
272+ // configuration, but don't reconfigure Python (don't enable/disable
273+ // faulthandler and don't reconfigure warnings filters).
274+ //
275+ // Return 0 on success. Raise an exception and return -1 on error.
276+ //
277+ // The configuration should come from _PyInterpreterState_GetConfigCopy().
278+ //
279+ // Export for '_testinternalcapi' shared extension.
280280PyAPI_FUNC (int ) _PyInterpreterState_SetConfig (
281281 const struct PyConfig * config );
282282
0 commit comments