We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b2a84a commit e1dfb0fCopy full SHA for e1dfb0f
Python/initconfig.c
@@ -3037,15 +3037,7 @@ PyStatus
3037
_PyInterpreterConfig_Copy(_PyInterpreterConfig *config,
3038
const _PyInterpreterConfig *config2)
3039
{
3040
- _PyInterpreterConfig_Clear(config);
3041
-
3042
-#define COPY_ATTR(ATTR) config->ATTR = config2->ATTR
3043
3044
- COPY_ATTR(allow_fork);
3045
- COPY_ATTR(allow_subprocess);
3046
- COPY_ATTR(allow_threading);
3047
3048
-#undef COPY_ATTR
+ *config = *config2;
3049
3050
return _PyStatus_OK();
3051
}
0 commit comments