Nuitka-winsvc 2.2.2__cp311-cp311-win_amd64.whl → 2.3__cp311-cp311-win_amd64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {Nuitka_winsvc-2.2.2.dist-info → Nuitka_winsvc-2.3.dist-info}/METADATA +1 -1
- {Nuitka_winsvc-2.2.2.dist-info → Nuitka_winsvc-2.3.dist-info}/RECORD +199 -198
- nuitka/Bytecodes.py +4 -2
- nuitka/HardImportRegistry.py +1 -0
- nuitka/MainControl.py +16 -10
- nuitka/ModuleRegistry.py +15 -0
- nuitka/OptionParsing.py +30 -8
- nuitka/Options.py +104 -44
- nuitka/PostProcessing.py +9 -8
- nuitka/PythonVersions.py +2 -1
- nuitka/Serialization.py +47 -30
- nuitka/Version.py +1 -1
- nuitka/build/Backend.scons +46 -19
- nuitka/build/CCompilerVersion.scons +3 -3
- nuitka/build/Onefile.scons +4 -4
- nuitka/build/SconsCaching.py +3 -2
- nuitka/build/SconsCompilerSettings.py +11 -5
- nuitka/build/SconsInterface.py +22 -6
- nuitka/build/SconsUtils.py +9 -1
- nuitka/build/include/nuitka/allocator.h +58 -2
- nuitka/build/include/nuitka/compiled_frame.h +48 -13
- nuitka/build/include/nuitka/compiled_function.h +4 -0
- nuitka/build/include/nuitka/constants.h +6 -0
- nuitka/build/include/nuitka/exception_groups.h +6 -6
- nuitka/build/include/nuitka/exceptions.h +3 -3
- nuitka/build/include/nuitka/freelists.h +11 -0
- nuitka/build/include/nuitka/helper/dictionaries.h +5 -4
- nuitka/build/include/nuitka/helper/lists.h +5 -5
- nuitka/build/include/nuitka/helper/lists_generated.h +12 -12
- nuitka/build/include/nuitka/helper/sequences.h +6 -0
- nuitka/build/include/nuitka/helper/slices.h +14 -8
- nuitka/build/include/nuitka/helper/subscripts.h +1 -184
- nuitka/build/include/nuitka/helper/tuples.h +42 -33
- nuitka/build/include/nuitka/importing.h +5 -0
- nuitka/build/include/nuitka/prelude.h +35 -2
- nuitka/build/include/nuitka/safe_string_ops.h +1 -0
- nuitka/build/include/nuitka/threading.h +13 -10
- nuitka/build/static_src/CompiledAsyncgenType.c +19 -8
- nuitka/build/static_src/CompiledCellType.c +1 -1
- nuitka/build/static_src/CompiledCodeHelpers.c +18 -16
- nuitka/build/static_src/CompiledCoroutineType.c +23 -19
- nuitka/build/static_src/CompiledFrameType.c +46 -34
- nuitka/build/static_src/CompiledFunctionType.c +55 -34
- nuitka/build/static_src/CompiledGeneratorType.c +21 -19
- nuitka/build/static_src/CompiledGeneratorTypeUncompiledIntegration.c +127 -130
- nuitka/build/static_src/CompiledMethodType.c +15 -17
- nuitka/build/static_src/HelpersAllocator.c +71 -0
- nuitka/build/static_src/HelpersAttributes.c +1 -1
- nuitka/build/static_src/HelpersBuiltin.c +5 -5
- nuitka/build/static_src/HelpersBytes.c +2 -2
- nuitka/build/static_src/HelpersCalling.c +3 -0
- nuitka/build/static_src/HelpersCallingGenerated.c +131 -131
- nuitka/build/static_src/HelpersComparisonEq.c +329 -329
- nuitka/build/static_src/HelpersComparisonEqUtils.c +3 -1
- nuitka/build/static_src/HelpersComparisonGe.c +322 -322
- nuitka/build/static_src/HelpersComparisonGt.c +321 -321
- nuitka/build/static_src/HelpersComparisonLe.c +322 -322
- nuitka/build/static_src/HelpersComparisonLt.c +321 -321
- nuitka/build/static_src/HelpersComparisonNe.c +329 -329
- nuitka/build/static_src/HelpersConsole.c +96 -0
- nuitka/build/static_src/HelpersConstantsBlob.c +10 -6
- nuitka/build/static_src/HelpersDeepcopy.c +10 -8
- nuitka/build/static_src/HelpersDictionaries.c +17 -11
- nuitka/build/static_src/HelpersDictionariesGenerated.c +65 -29
- nuitka/build/static_src/HelpersExceptions.c +107 -9
- nuitka/build/static_src/HelpersFilesystemPaths.c +64 -4
- nuitka/build/static_src/HelpersFloats.c +20 -14
- nuitka/build/static_src/HelpersImport.c +1 -1
- nuitka/build/static_src/HelpersJitSources.c +1 -1
- nuitka/build/static_src/HelpersLists.c +29 -19
- nuitka/build/static_src/HelpersListsGenerated.c +24 -24
- nuitka/build/static_src/HelpersMatching.c +32 -5
- nuitka/build/static_src/HelpersOperationBinaryAdd.c +90 -63
- nuitka/build/static_src/HelpersOperationBinaryAddUtils.c +4 -4
- nuitka/build/static_src/HelpersOperationBinaryBitand.c +33 -33
- nuitka/build/static_src/HelpersOperationBinaryBitor.c +33 -33
- nuitka/build/static_src/HelpersOperationBinaryBitxor.c +33 -33
- nuitka/build/static_src/HelpersOperationBinaryDivmod.c +24 -24
- nuitka/build/static_src/HelpersOperationBinaryFloordiv.c +24 -24
- nuitka/build/static_src/HelpersOperationBinaryLshift.c +30 -30
- nuitka/build/static_src/HelpersOperationBinaryMatmult.c +7 -7
- nuitka/build/static_src/HelpersOperationBinaryMod.c +90 -90
- nuitka/build/static_src/HelpersOperationBinaryMult.c +64 -58
- nuitka/build/static_src/HelpersOperationBinaryOlddiv.c +24 -24
- nuitka/build/static_src/HelpersOperationBinaryPow.c +27 -27
- nuitka/build/static_src/HelpersOperationBinaryRshift.c +30 -30
- nuitka/build/static_src/HelpersOperationBinarySub.c +24 -24
- nuitka/build/static_src/HelpersOperationBinaryTruediv.c +24 -24
- nuitka/build/static_src/HelpersOperationInplaceAdd.c +67 -49
- nuitka/build/static_src/HelpersOperationInplaceBitand.c +25 -25
- nuitka/build/static_src/HelpersOperationInplaceBitor.c +25 -25
- nuitka/build/static_src/HelpersOperationInplaceBitxor.c +25 -25
- nuitka/build/static_src/HelpersOperationInplaceFloordiv.c +28 -28
- nuitka/build/static_src/HelpersOperationInplaceLshift.c +18 -18
- nuitka/build/static_src/HelpersOperationInplaceMatmult.c +10 -10
- nuitka/build/static_src/HelpersOperationInplaceMod.c +70 -70
- nuitka/build/static_src/HelpersOperationInplaceMult.c +33 -33
- nuitka/build/static_src/HelpersOperationInplaceOlddiv.c +28 -28
- nuitka/build/static_src/HelpersOperationInplacePow.c +28 -28
- nuitka/build/static_src/HelpersOperationInplaceRshift.c +18 -18
- nuitka/build/static_src/HelpersOperationInplaceSub.c +28 -28
- nuitka/build/static_src/HelpersOperationInplaceTruediv.c +28 -28
- nuitka/build/static_src/HelpersRaising.c +10 -3
- nuitka/build/static_src/HelpersSafeStrings.c +14 -4
- nuitka/build/static_src/HelpersSlices.c +12 -5
- nuitka/build/static_src/HelpersStrings.c +1 -1
- nuitka/build/static_src/HelpersTuples.c +20 -15
- nuitka/build/static_src/InspectPatcher.c +74 -6
- nuitka/build/static_src/MainProgram.c +90 -25
- nuitka/build/static_src/MetaPathBasedLoader.c +81 -45
- nuitka/build/static_src/MetaPathBasedLoaderResourceReaderFiles.c +2 -2
- nuitka/build/static_src/OnefileBootstrap.c +17 -20
- nuitka/code_generation/CodeGeneration.py +5 -2
- nuitka/code_generation/ConstantCodes.py +2 -2
- nuitka/code_generation/DictCodes.py +2 -2
- nuitka/code_generation/GlobalConstants.py +5 -0
- nuitka/code_generation/GlobalsLocalsCodes.py +2 -2
- nuitka/code_generation/ListCodes.py +2 -2
- nuitka/code_generation/LocalsDictCodes.py +1 -1
- nuitka/code_generation/ModuleCodes.py +19 -0
- nuitka/code_generation/PackageResourceCodes.py +14 -0
- nuitka/code_generation/SliceCodes.py +3 -3
- nuitka/code_generation/SubscriptCodes.py +5 -13
- nuitka/code_generation/TupleCodes.py +1 -1
- nuitka/code_generation/c_types/CTypePyObjectPointers.py +7 -7
- nuitka/code_generation/templates/CodeTemplatesConstants.py +7 -5
- nuitka/code_generation/templates/CodeTemplatesLoader.py +2 -0
- nuitka/code_generation/templates/CodeTemplatesModules.py +78 -54
- nuitka/code_generation/templates_c/CodeTemplateCallsMixed.c.j2 +1 -1
- nuitka/code_generation/templates_c/CodeTemplateCallsPositional.c.j2 +8 -8
- nuitka/code_generation/templates_c/CodeTemplateCallsPositionalMethodDescr.c.j2 +5 -5
- nuitka/code_generation/templates_c/CodeTemplateMakeListHinted.c.j2 +2 -2
- nuitka/code_generation/templates_c/CodeTemplateMakeListSmall.c.j2 +2 -2
- nuitka/code_generation/templates_c/HelperDictionaryCopy.c.j2 +57 -21
- nuitka/code_generation/templates_c/HelperImportHard.c.j2 +1 -1
- nuitka/code_generation/templates_c/HelperOperationBinary.c.j2 +5 -5
- nuitka/code_generation/templates_c/HelperOperationComparison.c.j2 +18 -18
- nuitka/code_generation/templates_c/HelperOperationComparisonBytes.c.j2 +11 -11
- nuitka/code_generation/templates_c/HelperOperationComparisonFloat.c.j2 +3 -3
- nuitka/code_generation/templates_c/HelperOperationComparisonInt.c.j2 +3 -3
- nuitka/code_generation/templates_c/HelperOperationComparisonList.c.j2 +7 -7
- nuitka/code_generation/templates_c/HelperOperationComparisonLong.c.j2 +3 -3
- nuitka/code_generation/templates_c/HelperOperationComparisonStr.c.j2 +11 -11
- nuitka/code_generation/templates_c/HelperOperationComparisonTuple.c.j2 +7 -7
- nuitka/code_generation/templates_c/HelperOperationComparisonUnicode.c.j2 +10 -10
- nuitka/code_generation/templates_c/HelperOperationInplace.c.j2 +1 -1
- nuitka/code_generation/templates_c/HelperSlotsBinary.c.j2 +3 -3
- nuitka/code_generation/templates_c/HelperSlotsList.c.j2 +4 -1
- nuitka/code_generation/templates_c/HelperSlotsTuple.c.j2 +4 -1
- nuitka/finalizations/FinalizeMarkups.py +0 -18
- nuitka/freezer/DependsExe.py +9 -4
- nuitka/freezer/DllDependenciesMacOS.py +1 -1
- nuitka/freezer/DllDependenciesWin32.py +1 -1
- nuitka/freezer/ImportDetection.py +1 -0
- nuitka/freezer/IncludedDataFiles.py +13 -4
- nuitka/freezer/Onefile.py +0 -1
- nuitka/freezer/Standalone.py +3 -1
- nuitka/importing/ImportCache.py +3 -2
- nuitka/importing/Importing.py +16 -3
- nuitka/importing/StandardLibrary.py +4 -0
- nuitka/nodes/ChildrenHavingMixins.py +2 -0
- nuitka/nodes/ExpressionBasesGenerated.py +4 -0
- nuitka/nodes/HardImportNodesGenerated.py +83 -0
- nuitka/nodes/ModuleNodes.py +10 -2
- nuitka/nodes/OsSysNodes.py +16 -0
- nuitka/nodes/SubscriptNodes.py +3 -3
- nuitka/plugins/PluginBase.py +2 -0
- nuitka/plugins/standard/DataFilesPlugin.py +22 -1
- nuitka/plugins/standard/DillPlugin/DillPlugin.c +3 -3
- nuitka/plugins/standard/OptionsNannyPlugin.py +9 -41
- nuitka/plugins/standard/PkgResourcesPlugin.py +8 -2
- nuitka/plugins/standard/PySidePyQtPlugin.py +4 -0
- nuitka/plugins/standard/standard.nuitka-package.config.yml +29 -13
- nuitka/plugins/standard/stdlib2.nuitka-package.config.yml +2 -2
- nuitka/plugins/standard/stdlib3.nuitka-package.config.yml +2 -2
- nuitka/specs/HardImportSpecs.py +3 -0
- nuitka/specs/ParameterSpecs.py +26 -15
- nuitka/tools/general/find_module/FindModuleCode.py +3 -2
- nuitka/tools/specialize/CTypeDescriptions.py +11 -9
- nuitka/tools/testing/Common.py +12 -5
- nuitka/tools/testing/SearchModes.py +5 -1
- nuitka/tools/watch/GitHub.py +1 -7
- nuitka/tree/Building.py +9 -6
- nuitka/tree/ReformulationMatchStatements.py +39 -3
- nuitka/tree/TreeHelpers.py +8 -0
- nuitka/utils/CStrings.py +7 -0
- nuitka/utils/Execution.py +10 -1
- nuitka/utils/FileOperations.py +21 -13
- nuitka/utils/Images.py +1 -1
- nuitka/utils/Importing.py +24 -0
- nuitka/utils/ReExecute.py +7 -3
- nuitka/utils/SharedLibraries.py +17 -0
- nuitka/utils/Yaml.py +9 -1
- {Nuitka_winsvc-2.2.2.data → Nuitka_winsvc-2.3.data}/scripts/nuitka-run.bat +0 -0
- {Nuitka_winsvc-2.2.2.data → Nuitka_winsvc-2.3.data}/scripts/nuitka.bat +0 -0
- {Nuitka_winsvc-2.2.2.dist-info → Nuitka_winsvc-2.3.dist-info}/LICENSE.txt +0 -0
- {Nuitka_winsvc-2.2.2.dist-info → Nuitka_winsvc-2.3.dist-info}/WHEEL +0 -0
- {Nuitka_winsvc-2.2.2.dist-info → Nuitka_winsvc-2.3.dist-info}/entry_points.txt +0 -0
- {Nuitka_winsvc-2.2.2.dist-info → Nuitka_winsvc-2.3.dist-info}/top_level.txt +0 -0
|
@@ -163,7 +163,7 @@ PyObject *CALL_FUNCTION_NO_ARGS(PyThreadState *tstate, PyObject *called) {
|
|
|
163
163
|
return Nuitka_CheckFunctionResult(tstate, called, result);
|
|
164
164
|
}
|
|
165
165
|
#endif
|
|
166
|
-
#if !defined(_NUITKA_EXPERIMENTAL_DISABLE_UNCOMPILED_FUNCTION_CALL_OPT)
|
|
166
|
+
#if PYTHON_VERSION < 0x380 && !defined(_NUITKA_EXPERIMENTAL_DISABLE_UNCOMPILED_FUNCTION_CALL_OPT)
|
|
167
167
|
} else if (PyFunction_Check(called)) {
|
|
168
168
|
#if PYTHON_VERSION < 0x3b0
|
|
169
169
|
PyObject *result = callPythonFunctionNoArgs(called);
|
|
@@ -512,7 +512,7 @@ PyObject *CALL_FUNCTION_WITH_SINGLE_ARG(PyThreadState *tstate, PyObject *called,
|
|
|
512
512
|
PyObject *result;
|
|
513
513
|
|
|
514
514
|
#if PYTHON_VERSION < 0x360
|
|
515
|
-
PyObject *pos_args = MAKE_TUPLE(args, 1);
|
|
515
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args, 1);
|
|
516
516
|
if (flags & METH_KEYWORDS) {
|
|
517
517
|
result = (*(PyCFunctionWithKeywords)method)(self, pos_args, NULL);
|
|
518
518
|
} else {
|
|
@@ -522,19 +522,19 @@ PyObject *CALL_FUNCTION_WITH_SINGLE_ARG(PyThreadState *tstate, PyObject *called,
|
|
|
522
522
|
Py_DECREF(pos_args);
|
|
523
523
|
#else
|
|
524
524
|
if (flags == (METH_VARARGS | METH_KEYWORDS)) {
|
|
525
|
-
PyObject *pos_args = MAKE_TUPLE(args, 1);
|
|
525
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args, 1);
|
|
526
526
|
result = (*(PyCFunctionWithKeywords)method)(self, pos_args, NULL);
|
|
527
527
|
Py_DECREF(pos_args);
|
|
528
528
|
} else if (flags == METH_FASTCALL) {
|
|
529
529
|
#if PYTHON_VERSION < 0x370
|
|
530
530
|
result = (*(_PyCFunctionFast)method)(self, (PyObject **)args, 1, NULL);
|
|
531
531
|
#else
|
|
532
|
-
PyObject *pos_args = MAKE_TUPLE(args, 1);
|
|
532
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args, 1);
|
|
533
533
|
result = (*(_PyCFunctionFast)method)(self, &pos_args, 1);
|
|
534
534
|
Py_DECREF(pos_args);
|
|
535
535
|
#endif
|
|
536
536
|
} else {
|
|
537
|
-
PyObject *pos_args = MAKE_TUPLE(args, 1);
|
|
537
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args, 1);
|
|
538
538
|
result = (*method)(self, pos_args);
|
|
539
539
|
Py_DECREF(pos_args);
|
|
540
540
|
}
|
|
@@ -549,7 +549,7 @@ PyObject *CALL_FUNCTION_WITH_SINGLE_ARG(PyThreadState *tstate, PyObject *called,
|
|
|
549
549
|
return Nuitka_CheckFunctionResult(tstate, called, result);
|
|
550
550
|
}
|
|
551
551
|
#endif
|
|
552
|
-
#if !defined(_NUITKA_EXPERIMENTAL_DISABLE_UNCOMPILED_FUNCTION_CALL_OPT)
|
|
552
|
+
#if PYTHON_VERSION < 0x380 && !defined(_NUITKA_EXPERIMENTAL_DISABLE_UNCOMPILED_FUNCTION_CALL_OPT)
|
|
553
553
|
} else if (PyFunction_Check(called)) {
|
|
554
554
|
#if PYTHON_VERSION < 0x3b0
|
|
555
555
|
PyObject *result = callPythonFunction(called, args, 1);
|
|
@@ -590,7 +590,7 @@ PyObject *CALL_FUNCTION_WITH_SINGLE_ARG(PyThreadState *tstate, PyObject *called,
|
|
|
590
590
|
obj = called_type->tp_alloc(called_type, 0);
|
|
591
591
|
CHECK_OBJECT(obj);
|
|
592
592
|
} else {
|
|
593
|
-
pos_args = MAKE_TUPLE(args, 1);
|
|
593
|
+
pos_args = MAKE_TUPLE(tstate, args, 1);
|
|
594
594
|
obj = called_type->tp_new(called_type, pos_args, NULL);
|
|
595
595
|
}
|
|
596
596
|
|
|
@@ -663,7 +663,7 @@ PyObject *CALL_FUNCTION_WITH_SINGLE_ARG(PyThreadState *tstate, PyObject *called,
|
|
|
663
663
|
}
|
|
664
664
|
} else {
|
|
665
665
|
if (pos_args == NULL) {
|
|
666
|
-
pos_args = MAKE_TUPLE(args, 1);
|
|
666
|
+
pos_args = MAKE_TUPLE(tstate, args, 1);
|
|
667
667
|
}
|
|
668
668
|
|
|
669
669
|
if (unlikely(type->tp_init(obj, pos_args, NULL) < 0)) {
|
|
@@ -762,7 +762,7 @@ PyObject *CALL_FUNCTION_WITH_SINGLE_ARG(PyThreadState *tstate, PyObject *called,
|
|
|
762
762
|
PRINT_NEW_LINE();
|
|
763
763
|
#endif
|
|
764
764
|
|
|
765
|
-
PyObject *pos_args = MAKE_TUPLE(args, 1);
|
|
765
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args, 1);
|
|
766
766
|
|
|
767
767
|
PyObject *result = CALL_FUNCTION(tstate, called, pos_args, NULL);
|
|
768
768
|
|
|
@@ -953,7 +953,7 @@ PyObject *CALL_FUNCTION_WITH_POSARGS1(PyThreadState *tstate, PyObject *called, P
|
|
|
953
953
|
return Nuitka_CheckFunctionResult(tstate, called, result);
|
|
954
954
|
}
|
|
955
955
|
#endif
|
|
956
|
-
#if !defined(_NUITKA_EXPERIMENTAL_DISABLE_UNCOMPILED_FUNCTION_CALL_OPT)
|
|
956
|
+
#if PYTHON_VERSION < 0x380 && !defined(_NUITKA_EXPERIMENTAL_DISABLE_UNCOMPILED_FUNCTION_CALL_OPT)
|
|
957
957
|
} else if (PyFunction_Check(called)) {
|
|
958
958
|
#if PYTHON_VERSION < 0x3b0
|
|
959
959
|
PyObject *result = callPythonFunction(called, args, 1);
|
|
@@ -1298,7 +1298,7 @@ PyObject *CALL_FUNCTION_WITH_ARGS2(PyThreadState *tstate, PyObject *called, PyOb
|
|
|
1298
1298
|
PyObject *result;
|
|
1299
1299
|
|
|
1300
1300
|
#if PYTHON_VERSION < 0x360
|
|
1301
|
-
PyObject *pos_args = MAKE_TUPLE(args, 2);
|
|
1301
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args, 2);
|
|
1302
1302
|
if (flags & METH_KEYWORDS) {
|
|
1303
1303
|
result = (*(PyCFunctionWithKeywords)method)(self, pos_args, NULL);
|
|
1304
1304
|
} else {
|
|
@@ -1308,19 +1308,19 @@ PyObject *CALL_FUNCTION_WITH_ARGS2(PyThreadState *tstate, PyObject *called, PyOb
|
|
|
1308
1308
|
Py_DECREF(pos_args);
|
|
1309
1309
|
#else
|
|
1310
1310
|
if (flags == (METH_VARARGS | METH_KEYWORDS)) {
|
|
1311
|
-
PyObject *pos_args = MAKE_TUPLE(args, 2);
|
|
1311
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args, 2);
|
|
1312
1312
|
result = (*(PyCFunctionWithKeywords)method)(self, pos_args, NULL);
|
|
1313
1313
|
Py_DECREF(pos_args);
|
|
1314
1314
|
} else if (flags == METH_FASTCALL) {
|
|
1315
1315
|
#if PYTHON_VERSION < 0x370
|
|
1316
1316
|
result = (*(_PyCFunctionFast)method)(self, (PyObject **)args, 2, NULL);
|
|
1317
1317
|
#else
|
|
1318
|
-
PyObject *pos_args = MAKE_TUPLE(args, 2);
|
|
1318
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args, 2);
|
|
1319
1319
|
result = (*(_PyCFunctionFast)method)(self, &pos_args, 2);
|
|
1320
1320
|
Py_DECREF(pos_args);
|
|
1321
1321
|
#endif
|
|
1322
1322
|
} else {
|
|
1323
|
-
PyObject *pos_args = MAKE_TUPLE(args, 2);
|
|
1323
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args, 2);
|
|
1324
1324
|
result = (*method)(self, pos_args);
|
|
1325
1325
|
Py_DECREF(pos_args);
|
|
1326
1326
|
}
|
|
@@ -1335,7 +1335,7 @@ PyObject *CALL_FUNCTION_WITH_ARGS2(PyThreadState *tstate, PyObject *called, PyOb
|
|
|
1335
1335
|
return Nuitka_CheckFunctionResult(tstate, called, result);
|
|
1336
1336
|
}
|
|
1337
1337
|
#endif
|
|
1338
|
-
#if !defined(_NUITKA_EXPERIMENTAL_DISABLE_UNCOMPILED_FUNCTION_CALL_OPT)
|
|
1338
|
+
#if PYTHON_VERSION < 0x380 && !defined(_NUITKA_EXPERIMENTAL_DISABLE_UNCOMPILED_FUNCTION_CALL_OPT)
|
|
1339
1339
|
} else if (PyFunction_Check(called)) {
|
|
1340
1340
|
#if PYTHON_VERSION < 0x3b0
|
|
1341
1341
|
PyObject *result = callPythonFunction(called, args, 2);
|
|
@@ -1370,7 +1370,7 @@ PyObject *CALL_FUNCTION_WITH_ARGS2(PyThreadState *tstate, PyObject *called, PyOb
|
|
|
1370
1370
|
obj = called_type->tp_alloc(called_type, 0);
|
|
1371
1371
|
CHECK_OBJECT(obj);
|
|
1372
1372
|
} else {
|
|
1373
|
-
pos_args = MAKE_TUPLE(args, 2);
|
|
1373
|
+
pos_args = MAKE_TUPLE(tstate, args, 2);
|
|
1374
1374
|
obj = called_type->tp_new(called_type, pos_args, NULL);
|
|
1375
1375
|
}
|
|
1376
1376
|
|
|
@@ -1442,7 +1442,7 @@ PyObject *CALL_FUNCTION_WITH_ARGS2(PyThreadState *tstate, PyObject *called, PyOb
|
|
|
1442
1442
|
}
|
|
1443
1443
|
} else {
|
|
1444
1444
|
if (pos_args == NULL) {
|
|
1445
|
-
pos_args = MAKE_TUPLE(args, 2);
|
|
1445
|
+
pos_args = MAKE_TUPLE(tstate, args, 2);
|
|
1446
1446
|
}
|
|
1447
1447
|
|
|
1448
1448
|
if (unlikely(type->tp_init(obj, pos_args, NULL) < 0)) {
|
|
@@ -1541,7 +1541,7 @@ PyObject *CALL_FUNCTION_WITH_ARGS2(PyThreadState *tstate, PyObject *called, PyOb
|
|
|
1541
1541
|
PRINT_NEW_LINE();
|
|
1542
1542
|
#endif
|
|
1543
1543
|
|
|
1544
|
-
PyObject *pos_args = MAKE_TUPLE(args, 2);
|
|
1544
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args, 2);
|
|
1545
1545
|
|
|
1546
1546
|
PyObject *result = CALL_FUNCTION(tstate, called, pos_args, NULL);
|
|
1547
1547
|
|
|
@@ -1720,7 +1720,7 @@ PyObject *CALL_FUNCTION_WITH_POSARGS2(PyThreadState *tstate, PyObject *called, P
|
|
|
1720
1720
|
return Nuitka_CheckFunctionResult(tstate, called, result);
|
|
1721
1721
|
}
|
|
1722
1722
|
#endif
|
|
1723
|
-
#if !defined(_NUITKA_EXPERIMENTAL_DISABLE_UNCOMPILED_FUNCTION_CALL_OPT)
|
|
1723
|
+
#if PYTHON_VERSION < 0x380 && !defined(_NUITKA_EXPERIMENTAL_DISABLE_UNCOMPILED_FUNCTION_CALL_OPT)
|
|
1724
1724
|
} else if (PyFunction_Check(called)) {
|
|
1725
1725
|
#if PYTHON_VERSION < 0x3b0
|
|
1726
1726
|
PyObject *result = callPythonFunction(called, args, 2);
|
|
@@ -2058,7 +2058,7 @@ PyObject *CALL_FUNCTION_WITH_ARGS3(PyThreadState *tstate, PyObject *called, PyOb
|
|
|
2058
2058
|
PyObject *result;
|
|
2059
2059
|
|
|
2060
2060
|
#if PYTHON_VERSION < 0x360
|
|
2061
|
-
PyObject *pos_args = MAKE_TUPLE(args, 3);
|
|
2061
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args, 3);
|
|
2062
2062
|
if (flags & METH_KEYWORDS) {
|
|
2063
2063
|
result = (*(PyCFunctionWithKeywords)method)(self, pos_args, NULL);
|
|
2064
2064
|
} else {
|
|
@@ -2068,19 +2068,19 @@ PyObject *CALL_FUNCTION_WITH_ARGS3(PyThreadState *tstate, PyObject *called, PyOb
|
|
|
2068
2068
|
Py_DECREF(pos_args);
|
|
2069
2069
|
#else
|
|
2070
2070
|
if (flags == (METH_VARARGS | METH_KEYWORDS)) {
|
|
2071
|
-
PyObject *pos_args = MAKE_TUPLE(args, 3);
|
|
2071
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args, 3);
|
|
2072
2072
|
result = (*(PyCFunctionWithKeywords)method)(self, pos_args, NULL);
|
|
2073
2073
|
Py_DECREF(pos_args);
|
|
2074
2074
|
} else if (flags == METH_FASTCALL) {
|
|
2075
2075
|
#if PYTHON_VERSION < 0x370
|
|
2076
2076
|
result = (*(_PyCFunctionFast)method)(self, (PyObject **)args, 3, NULL);
|
|
2077
2077
|
#else
|
|
2078
|
-
PyObject *pos_args = MAKE_TUPLE(args, 3);
|
|
2078
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args, 3);
|
|
2079
2079
|
result = (*(_PyCFunctionFast)method)(self, &pos_args, 3);
|
|
2080
2080
|
Py_DECREF(pos_args);
|
|
2081
2081
|
#endif
|
|
2082
2082
|
} else {
|
|
2083
|
-
PyObject *pos_args = MAKE_TUPLE(args, 3);
|
|
2083
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args, 3);
|
|
2084
2084
|
result = (*method)(self, pos_args);
|
|
2085
2085
|
Py_DECREF(pos_args);
|
|
2086
2086
|
}
|
|
@@ -2095,7 +2095,7 @@ PyObject *CALL_FUNCTION_WITH_ARGS3(PyThreadState *tstate, PyObject *called, PyOb
|
|
|
2095
2095
|
return Nuitka_CheckFunctionResult(tstate, called, result);
|
|
2096
2096
|
}
|
|
2097
2097
|
#endif
|
|
2098
|
-
#if !defined(_NUITKA_EXPERIMENTAL_DISABLE_UNCOMPILED_FUNCTION_CALL_OPT)
|
|
2098
|
+
#if PYTHON_VERSION < 0x380 && !defined(_NUITKA_EXPERIMENTAL_DISABLE_UNCOMPILED_FUNCTION_CALL_OPT)
|
|
2099
2099
|
} else if (PyFunction_Check(called)) {
|
|
2100
2100
|
#if PYTHON_VERSION < 0x3b0
|
|
2101
2101
|
PyObject *result = callPythonFunction(called, args, 3);
|
|
@@ -2130,7 +2130,7 @@ PyObject *CALL_FUNCTION_WITH_ARGS3(PyThreadState *tstate, PyObject *called, PyOb
|
|
|
2130
2130
|
obj = called_type->tp_alloc(called_type, 0);
|
|
2131
2131
|
CHECK_OBJECT(obj);
|
|
2132
2132
|
} else {
|
|
2133
|
-
pos_args = MAKE_TUPLE(args, 3);
|
|
2133
|
+
pos_args = MAKE_TUPLE(tstate, args, 3);
|
|
2134
2134
|
obj = called_type->tp_new(called_type, pos_args, NULL);
|
|
2135
2135
|
}
|
|
2136
2136
|
|
|
@@ -2202,7 +2202,7 @@ PyObject *CALL_FUNCTION_WITH_ARGS3(PyThreadState *tstate, PyObject *called, PyOb
|
|
|
2202
2202
|
}
|
|
2203
2203
|
} else {
|
|
2204
2204
|
if (pos_args == NULL) {
|
|
2205
|
-
pos_args = MAKE_TUPLE(args, 3);
|
|
2205
|
+
pos_args = MAKE_TUPLE(tstate, args, 3);
|
|
2206
2206
|
}
|
|
2207
2207
|
|
|
2208
2208
|
if (unlikely(type->tp_init(obj, pos_args, NULL) < 0)) {
|
|
@@ -2301,7 +2301,7 @@ PyObject *CALL_FUNCTION_WITH_ARGS3(PyThreadState *tstate, PyObject *called, PyOb
|
|
|
2301
2301
|
PRINT_NEW_LINE();
|
|
2302
2302
|
#endif
|
|
2303
2303
|
|
|
2304
|
-
PyObject *pos_args = MAKE_TUPLE(args, 3);
|
|
2304
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args, 3);
|
|
2305
2305
|
|
|
2306
2306
|
PyObject *result = CALL_FUNCTION(tstate, called, pos_args, NULL);
|
|
2307
2307
|
|
|
@@ -2480,7 +2480,7 @@ PyObject *CALL_FUNCTION_WITH_POSARGS3(PyThreadState *tstate, PyObject *called, P
|
|
|
2480
2480
|
return Nuitka_CheckFunctionResult(tstate, called, result);
|
|
2481
2481
|
}
|
|
2482
2482
|
#endif
|
|
2483
|
-
#if !defined(_NUITKA_EXPERIMENTAL_DISABLE_UNCOMPILED_FUNCTION_CALL_OPT)
|
|
2483
|
+
#if PYTHON_VERSION < 0x380 && !defined(_NUITKA_EXPERIMENTAL_DISABLE_UNCOMPILED_FUNCTION_CALL_OPT)
|
|
2484
2484
|
} else if (PyFunction_Check(called)) {
|
|
2485
2485
|
#if PYTHON_VERSION < 0x3b0
|
|
2486
2486
|
PyObject *result = callPythonFunction(called, args, 3);
|
|
@@ -2818,7 +2818,7 @@ PyObject *CALL_FUNCTION_WITH_ARGS4(PyThreadState *tstate, PyObject *called, PyOb
|
|
|
2818
2818
|
PyObject *result;
|
|
2819
2819
|
|
|
2820
2820
|
#if PYTHON_VERSION < 0x360
|
|
2821
|
-
PyObject *pos_args = MAKE_TUPLE(args, 4);
|
|
2821
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args, 4);
|
|
2822
2822
|
if (flags & METH_KEYWORDS) {
|
|
2823
2823
|
result = (*(PyCFunctionWithKeywords)method)(self, pos_args, NULL);
|
|
2824
2824
|
} else {
|
|
@@ -2828,19 +2828,19 @@ PyObject *CALL_FUNCTION_WITH_ARGS4(PyThreadState *tstate, PyObject *called, PyOb
|
|
|
2828
2828
|
Py_DECREF(pos_args);
|
|
2829
2829
|
#else
|
|
2830
2830
|
if (flags == (METH_VARARGS | METH_KEYWORDS)) {
|
|
2831
|
-
PyObject *pos_args = MAKE_TUPLE(args, 4);
|
|
2831
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args, 4);
|
|
2832
2832
|
result = (*(PyCFunctionWithKeywords)method)(self, pos_args, NULL);
|
|
2833
2833
|
Py_DECREF(pos_args);
|
|
2834
2834
|
} else if (flags == METH_FASTCALL) {
|
|
2835
2835
|
#if PYTHON_VERSION < 0x370
|
|
2836
2836
|
result = (*(_PyCFunctionFast)method)(self, (PyObject **)args, 4, NULL);
|
|
2837
2837
|
#else
|
|
2838
|
-
PyObject *pos_args = MAKE_TUPLE(args, 4);
|
|
2838
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args, 4);
|
|
2839
2839
|
result = (*(_PyCFunctionFast)method)(self, &pos_args, 4);
|
|
2840
2840
|
Py_DECREF(pos_args);
|
|
2841
2841
|
#endif
|
|
2842
2842
|
} else {
|
|
2843
|
-
PyObject *pos_args = MAKE_TUPLE(args, 4);
|
|
2843
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args, 4);
|
|
2844
2844
|
result = (*method)(self, pos_args);
|
|
2845
2845
|
Py_DECREF(pos_args);
|
|
2846
2846
|
}
|
|
@@ -2855,7 +2855,7 @@ PyObject *CALL_FUNCTION_WITH_ARGS4(PyThreadState *tstate, PyObject *called, PyOb
|
|
|
2855
2855
|
return Nuitka_CheckFunctionResult(tstate, called, result);
|
|
2856
2856
|
}
|
|
2857
2857
|
#endif
|
|
2858
|
-
#if !defined(_NUITKA_EXPERIMENTAL_DISABLE_UNCOMPILED_FUNCTION_CALL_OPT)
|
|
2858
|
+
#if PYTHON_VERSION < 0x380 && !defined(_NUITKA_EXPERIMENTAL_DISABLE_UNCOMPILED_FUNCTION_CALL_OPT)
|
|
2859
2859
|
} else if (PyFunction_Check(called)) {
|
|
2860
2860
|
#if PYTHON_VERSION < 0x3b0
|
|
2861
2861
|
PyObject *result = callPythonFunction(called, args, 4);
|
|
@@ -2890,7 +2890,7 @@ PyObject *CALL_FUNCTION_WITH_ARGS4(PyThreadState *tstate, PyObject *called, PyOb
|
|
|
2890
2890
|
obj = called_type->tp_alloc(called_type, 0);
|
|
2891
2891
|
CHECK_OBJECT(obj);
|
|
2892
2892
|
} else {
|
|
2893
|
-
pos_args = MAKE_TUPLE(args, 4);
|
|
2893
|
+
pos_args = MAKE_TUPLE(tstate, args, 4);
|
|
2894
2894
|
obj = called_type->tp_new(called_type, pos_args, NULL);
|
|
2895
2895
|
}
|
|
2896
2896
|
|
|
@@ -2962,7 +2962,7 @@ PyObject *CALL_FUNCTION_WITH_ARGS4(PyThreadState *tstate, PyObject *called, PyOb
|
|
|
2962
2962
|
}
|
|
2963
2963
|
} else {
|
|
2964
2964
|
if (pos_args == NULL) {
|
|
2965
|
-
pos_args = MAKE_TUPLE(args, 4);
|
|
2965
|
+
pos_args = MAKE_TUPLE(tstate, args, 4);
|
|
2966
2966
|
}
|
|
2967
2967
|
|
|
2968
2968
|
if (unlikely(type->tp_init(obj, pos_args, NULL) < 0)) {
|
|
@@ -3061,7 +3061,7 @@ PyObject *CALL_FUNCTION_WITH_ARGS4(PyThreadState *tstate, PyObject *called, PyOb
|
|
|
3061
3061
|
PRINT_NEW_LINE();
|
|
3062
3062
|
#endif
|
|
3063
3063
|
|
|
3064
|
-
PyObject *pos_args = MAKE_TUPLE(args, 4);
|
|
3064
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args, 4);
|
|
3065
3065
|
|
|
3066
3066
|
PyObject *result = CALL_FUNCTION(tstate, called, pos_args, NULL);
|
|
3067
3067
|
|
|
@@ -3240,7 +3240,7 @@ PyObject *CALL_FUNCTION_WITH_POSARGS4(PyThreadState *tstate, PyObject *called, P
|
|
|
3240
3240
|
return Nuitka_CheckFunctionResult(tstate, called, result);
|
|
3241
3241
|
}
|
|
3242
3242
|
#endif
|
|
3243
|
-
#if !defined(_NUITKA_EXPERIMENTAL_DISABLE_UNCOMPILED_FUNCTION_CALL_OPT)
|
|
3243
|
+
#if PYTHON_VERSION < 0x380 && !defined(_NUITKA_EXPERIMENTAL_DISABLE_UNCOMPILED_FUNCTION_CALL_OPT)
|
|
3244
3244
|
} else if (PyFunction_Check(called)) {
|
|
3245
3245
|
#if PYTHON_VERSION < 0x3b0
|
|
3246
3246
|
PyObject *result = callPythonFunction(called, args, 4);
|
|
@@ -3578,7 +3578,7 @@ PyObject *CALL_FUNCTION_WITH_ARGS5(PyThreadState *tstate, PyObject *called, PyOb
|
|
|
3578
3578
|
PyObject *result;
|
|
3579
3579
|
|
|
3580
3580
|
#if PYTHON_VERSION < 0x360
|
|
3581
|
-
PyObject *pos_args = MAKE_TUPLE(args, 5);
|
|
3581
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args, 5);
|
|
3582
3582
|
if (flags & METH_KEYWORDS) {
|
|
3583
3583
|
result = (*(PyCFunctionWithKeywords)method)(self, pos_args, NULL);
|
|
3584
3584
|
} else {
|
|
@@ -3588,19 +3588,19 @@ PyObject *CALL_FUNCTION_WITH_ARGS5(PyThreadState *tstate, PyObject *called, PyOb
|
|
|
3588
3588
|
Py_DECREF(pos_args);
|
|
3589
3589
|
#else
|
|
3590
3590
|
if (flags == (METH_VARARGS | METH_KEYWORDS)) {
|
|
3591
|
-
PyObject *pos_args = MAKE_TUPLE(args, 5);
|
|
3591
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args, 5);
|
|
3592
3592
|
result = (*(PyCFunctionWithKeywords)method)(self, pos_args, NULL);
|
|
3593
3593
|
Py_DECREF(pos_args);
|
|
3594
3594
|
} else if (flags == METH_FASTCALL) {
|
|
3595
3595
|
#if PYTHON_VERSION < 0x370
|
|
3596
3596
|
result = (*(_PyCFunctionFast)method)(self, (PyObject **)args, 5, NULL);
|
|
3597
3597
|
#else
|
|
3598
|
-
PyObject *pos_args = MAKE_TUPLE(args, 5);
|
|
3598
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args, 5);
|
|
3599
3599
|
result = (*(_PyCFunctionFast)method)(self, &pos_args, 5);
|
|
3600
3600
|
Py_DECREF(pos_args);
|
|
3601
3601
|
#endif
|
|
3602
3602
|
} else {
|
|
3603
|
-
PyObject *pos_args = MAKE_TUPLE(args, 5);
|
|
3603
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args, 5);
|
|
3604
3604
|
result = (*method)(self, pos_args);
|
|
3605
3605
|
Py_DECREF(pos_args);
|
|
3606
3606
|
}
|
|
@@ -3615,7 +3615,7 @@ PyObject *CALL_FUNCTION_WITH_ARGS5(PyThreadState *tstate, PyObject *called, PyOb
|
|
|
3615
3615
|
return Nuitka_CheckFunctionResult(tstate, called, result);
|
|
3616
3616
|
}
|
|
3617
3617
|
#endif
|
|
3618
|
-
#if !defined(_NUITKA_EXPERIMENTAL_DISABLE_UNCOMPILED_FUNCTION_CALL_OPT)
|
|
3618
|
+
#if PYTHON_VERSION < 0x380 && !defined(_NUITKA_EXPERIMENTAL_DISABLE_UNCOMPILED_FUNCTION_CALL_OPT)
|
|
3619
3619
|
} else if (PyFunction_Check(called)) {
|
|
3620
3620
|
#if PYTHON_VERSION < 0x3b0
|
|
3621
3621
|
PyObject *result = callPythonFunction(called, args, 5);
|
|
@@ -3650,7 +3650,7 @@ PyObject *CALL_FUNCTION_WITH_ARGS5(PyThreadState *tstate, PyObject *called, PyOb
|
|
|
3650
3650
|
obj = called_type->tp_alloc(called_type, 0);
|
|
3651
3651
|
CHECK_OBJECT(obj);
|
|
3652
3652
|
} else {
|
|
3653
|
-
pos_args = MAKE_TUPLE(args, 5);
|
|
3653
|
+
pos_args = MAKE_TUPLE(tstate, args, 5);
|
|
3654
3654
|
obj = called_type->tp_new(called_type, pos_args, NULL);
|
|
3655
3655
|
}
|
|
3656
3656
|
|
|
@@ -3722,7 +3722,7 @@ PyObject *CALL_FUNCTION_WITH_ARGS5(PyThreadState *tstate, PyObject *called, PyOb
|
|
|
3722
3722
|
}
|
|
3723
3723
|
} else {
|
|
3724
3724
|
if (pos_args == NULL) {
|
|
3725
|
-
pos_args = MAKE_TUPLE(args, 5);
|
|
3725
|
+
pos_args = MAKE_TUPLE(tstate, args, 5);
|
|
3726
3726
|
}
|
|
3727
3727
|
|
|
3728
3728
|
if (unlikely(type->tp_init(obj, pos_args, NULL) < 0)) {
|
|
@@ -3821,7 +3821,7 @@ PyObject *CALL_FUNCTION_WITH_ARGS5(PyThreadState *tstate, PyObject *called, PyOb
|
|
|
3821
3821
|
PRINT_NEW_LINE();
|
|
3822
3822
|
#endif
|
|
3823
3823
|
|
|
3824
|
-
PyObject *pos_args = MAKE_TUPLE(args, 5);
|
|
3824
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args, 5);
|
|
3825
3825
|
|
|
3826
3826
|
PyObject *result = CALL_FUNCTION(tstate, called, pos_args, NULL);
|
|
3827
3827
|
|
|
@@ -4000,7 +4000,7 @@ PyObject *CALL_FUNCTION_WITH_POSARGS5(PyThreadState *tstate, PyObject *called, P
|
|
|
4000
4000
|
return Nuitka_CheckFunctionResult(tstate, called, result);
|
|
4001
4001
|
}
|
|
4002
4002
|
#endif
|
|
4003
|
-
#if !defined(_NUITKA_EXPERIMENTAL_DISABLE_UNCOMPILED_FUNCTION_CALL_OPT)
|
|
4003
|
+
#if PYTHON_VERSION < 0x380 && !defined(_NUITKA_EXPERIMENTAL_DISABLE_UNCOMPILED_FUNCTION_CALL_OPT)
|
|
4004
4004
|
} else if (PyFunction_Check(called)) {
|
|
4005
4005
|
#if PYTHON_VERSION < 0x3b0
|
|
4006
4006
|
PyObject *result = callPythonFunction(called, args, 5);
|
|
@@ -4338,7 +4338,7 @@ PyObject *CALL_FUNCTION_WITH_ARGS6(PyThreadState *tstate, PyObject *called, PyOb
|
|
|
4338
4338
|
PyObject *result;
|
|
4339
4339
|
|
|
4340
4340
|
#if PYTHON_VERSION < 0x360
|
|
4341
|
-
PyObject *pos_args = MAKE_TUPLE(args, 6);
|
|
4341
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args, 6);
|
|
4342
4342
|
if (flags & METH_KEYWORDS) {
|
|
4343
4343
|
result = (*(PyCFunctionWithKeywords)method)(self, pos_args, NULL);
|
|
4344
4344
|
} else {
|
|
@@ -4348,19 +4348,19 @@ PyObject *CALL_FUNCTION_WITH_ARGS6(PyThreadState *tstate, PyObject *called, PyOb
|
|
|
4348
4348
|
Py_DECREF(pos_args);
|
|
4349
4349
|
#else
|
|
4350
4350
|
if (flags == (METH_VARARGS | METH_KEYWORDS)) {
|
|
4351
|
-
PyObject *pos_args = MAKE_TUPLE(args, 6);
|
|
4351
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args, 6);
|
|
4352
4352
|
result = (*(PyCFunctionWithKeywords)method)(self, pos_args, NULL);
|
|
4353
4353
|
Py_DECREF(pos_args);
|
|
4354
4354
|
} else if (flags == METH_FASTCALL) {
|
|
4355
4355
|
#if PYTHON_VERSION < 0x370
|
|
4356
4356
|
result = (*(_PyCFunctionFast)method)(self, (PyObject **)args, 6, NULL);
|
|
4357
4357
|
#else
|
|
4358
|
-
PyObject *pos_args = MAKE_TUPLE(args, 6);
|
|
4358
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args, 6);
|
|
4359
4359
|
result = (*(_PyCFunctionFast)method)(self, &pos_args, 6);
|
|
4360
4360
|
Py_DECREF(pos_args);
|
|
4361
4361
|
#endif
|
|
4362
4362
|
} else {
|
|
4363
|
-
PyObject *pos_args = MAKE_TUPLE(args, 6);
|
|
4363
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args, 6);
|
|
4364
4364
|
result = (*method)(self, pos_args);
|
|
4365
4365
|
Py_DECREF(pos_args);
|
|
4366
4366
|
}
|
|
@@ -4375,7 +4375,7 @@ PyObject *CALL_FUNCTION_WITH_ARGS6(PyThreadState *tstate, PyObject *called, PyOb
|
|
|
4375
4375
|
return Nuitka_CheckFunctionResult(tstate, called, result);
|
|
4376
4376
|
}
|
|
4377
4377
|
#endif
|
|
4378
|
-
#if !defined(_NUITKA_EXPERIMENTAL_DISABLE_UNCOMPILED_FUNCTION_CALL_OPT)
|
|
4378
|
+
#if PYTHON_VERSION < 0x380 && !defined(_NUITKA_EXPERIMENTAL_DISABLE_UNCOMPILED_FUNCTION_CALL_OPT)
|
|
4379
4379
|
} else if (PyFunction_Check(called)) {
|
|
4380
4380
|
#if PYTHON_VERSION < 0x3b0
|
|
4381
4381
|
PyObject *result = callPythonFunction(called, args, 6);
|
|
@@ -4410,7 +4410,7 @@ PyObject *CALL_FUNCTION_WITH_ARGS6(PyThreadState *tstate, PyObject *called, PyOb
|
|
|
4410
4410
|
obj = called_type->tp_alloc(called_type, 0);
|
|
4411
4411
|
CHECK_OBJECT(obj);
|
|
4412
4412
|
} else {
|
|
4413
|
-
pos_args = MAKE_TUPLE(args, 6);
|
|
4413
|
+
pos_args = MAKE_TUPLE(tstate, args, 6);
|
|
4414
4414
|
obj = called_type->tp_new(called_type, pos_args, NULL);
|
|
4415
4415
|
}
|
|
4416
4416
|
|
|
@@ -4482,7 +4482,7 @@ PyObject *CALL_FUNCTION_WITH_ARGS6(PyThreadState *tstate, PyObject *called, PyOb
|
|
|
4482
4482
|
}
|
|
4483
4483
|
} else {
|
|
4484
4484
|
if (pos_args == NULL) {
|
|
4485
|
-
pos_args = MAKE_TUPLE(args, 6);
|
|
4485
|
+
pos_args = MAKE_TUPLE(tstate, args, 6);
|
|
4486
4486
|
}
|
|
4487
4487
|
|
|
4488
4488
|
if (unlikely(type->tp_init(obj, pos_args, NULL) < 0)) {
|
|
@@ -4581,7 +4581,7 @@ PyObject *CALL_FUNCTION_WITH_ARGS6(PyThreadState *tstate, PyObject *called, PyOb
|
|
|
4581
4581
|
PRINT_NEW_LINE();
|
|
4582
4582
|
#endif
|
|
4583
4583
|
|
|
4584
|
-
PyObject *pos_args = MAKE_TUPLE(args, 6);
|
|
4584
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args, 6);
|
|
4585
4585
|
|
|
4586
4586
|
PyObject *result = CALL_FUNCTION(tstate, called, pos_args, NULL);
|
|
4587
4587
|
|
|
@@ -4760,7 +4760,7 @@ PyObject *CALL_FUNCTION_WITH_POSARGS6(PyThreadState *tstate, PyObject *called, P
|
|
|
4760
4760
|
return Nuitka_CheckFunctionResult(tstate, called, result);
|
|
4761
4761
|
}
|
|
4762
4762
|
#endif
|
|
4763
|
-
#if !defined(_NUITKA_EXPERIMENTAL_DISABLE_UNCOMPILED_FUNCTION_CALL_OPT)
|
|
4763
|
+
#if PYTHON_VERSION < 0x380 && !defined(_NUITKA_EXPERIMENTAL_DISABLE_UNCOMPILED_FUNCTION_CALL_OPT)
|
|
4764
4764
|
} else if (PyFunction_Check(called)) {
|
|
4765
4765
|
#if PYTHON_VERSION < 0x3b0
|
|
4766
4766
|
PyObject *result = callPythonFunction(called, args, 6);
|
|
@@ -5098,7 +5098,7 @@ PyObject *CALL_FUNCTION_WITH_ARGS7(PyThreadState *tstate, PyObject *called, PyOb
|
|
|
5098
5098
|
PyObject *result;
|
|
5099
5099
|
|
|
5100
5100
|
#if PYTHON_VERSION < 0x360
|
|
5101
|
-
PyObject *pos_args = MAKE_TUPLE(args, 7);
|
|
5101
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args, 7);
|
|
5102
5102
|
if (flags & METH_KEYWORDS) {
|
|
5103
5103
|
result = (*(PyCFunctionWithKeywords)method)(self, pos_args, NULL);
|
|
5104
5104
|
} else {
|
|
@@ -5108,19 +5108,19 @@ PyObject *CALL_FUNCTION_WITH_ARGS7(PyThreadState *tstate, PyObject *called, PyOb
|
|
|
5108
5108
|
Py_DECREF(pos_args);
|
|
5109
5109
|
#else
|
|
5110
5110
|
if (flags == (METH_VARARGS | METH_KEYWORDS)) {
|
|
5111
|
-
PyObject *pos_args = MAKE_TUPLE(args, 7);
|
|
5111
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args, 7);
|
|
5112
5112
|
result = (*(PyCFunctionWithKeywords)method)(self, pos_args, NULL);
|
|
5113
5113
|
Py_DECREF(pos_args);
|
|
5114
5114
|
} else if (flags == METH_FASTCALL) {
|
|
5115
5115
|
#if PYTHON_VERSION < 0x370
|
|
5116
5116
|
result = (*(_PyCFunctionFast)method)(self, (PyObject **)args, 7, NULL);
|
|
5117
5117
|
#else
|
|
5118
|
-
PyObject *pos_args = MAKE_TUPLE(args, 7);
|
|
5118
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args, 7);
|
|
5119
5119
|
result = (*(_PyCFunctionFast)method)(self, &pos_args, 7);
|
|
5120
5120
|
Py_DECREF(pos_args);
|
|
5121
5121
|
#endif
|
|
5122
5122
|
} else {
|
|
5123
|
-
PyObject *pos_args = MAKE_TUPLE(args, 7);
|
|
5123
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args, 7);
|
|
5124
5124
|
result = (*method)(self, pos_args);
|
|
5125
5125
|
Py_DECREF(pos_args);
|
|
5126
5126
|
}
|
|
@@ -5135,7 +5135,7 @@ PyObject *CALL_FUNCTION_WITH_ARGS7(PyThreadState *tstate, PyObject *called, PyOb
|
|
|
5135
5135
|
return Nuitka_CheckFunctionResult(tstate, called, result);
|
|
5136
5136
|
}
|
|
5137
5137
|
#endif
|
|
5138
|
-
#if !defined(_NUITKA_EXPERIMENTAL_DISABLE_UNCOMPILED_FUNCTION_CALL_OPT)
|
|
5138
|
+
#if PYTHON_VERSION < 0x380 && !defined(_NUITKA_EXPERIMENTAL_DISABLE_UNCOMPILED_FUNCTION_CALL_OPT)
|
|
5139
5139
|
} else if (PyFunction_Check(called)) {
|
|
5140
5140
|
#if PYTHON_VERSION < 0x3b0
|
|
5141
5141
|
PyObject *result = callPythonFunction(called, args, 7);
|
|
@@ -5170,7 +5170,7 @@ PyObject *CALL_FUNCTION_WITH_ARGS7(PyThreadState *tstate, PyObject *called, PyOb
|
|
|
5170
5170
|
obj = called_type->tp_alloc(called_type, 0);
|
|
5171
5171
|
CHECK_OBJECT(obj);
|
|
5172
5172
|
} else {
|
|
5173
|
-
pos_args = MAKE_TUPLE(args, 7);
|
|
5173
|
+
pos_args = MAKE_TUPLE(tstate, args, 7);
|
|
5174
5174
|
obj = called_type->tp_new(called_type, pos_args, NULL);
|
|
5175
5175
|
}
|
|
5176
5176
|
|
|
@@ -5242,7 +5242,7 @@ PyObject *CALL_FUNCTION_WITH_ARGS7(PyThreadState *tstate, PyObject *called, PyOb
|
|
|
5242
5242
|
}
|
|
5243
5243
|
} else {
|
|
5244
5244
|
if (pos_args == NULL) {
|
|
5245
|
-
pos_args = MAKE_TUPLE(args, 7);
|
|
5245
|
+
pos_args = MAKE_TUPLE(tstate, args, 7);
|
|
5246
5246
|
}
|
|
5247
5247
|
|
|
5248
5248
|
if (unlikely(type->tp_init(obj, pos_args, NULL) < 0)) {
|
|
@@ -5341,7 +5341,7 @@ PyObject *CALL_FUNCTION_WITH_ARGS7(PyThreadState *tstate, PyObject *called, PyOb
|
|
|
5341
5341
|
PRINT_NEW_LINE();
|
|
5342
5342
|
#endif
|
|
5343
5343
|
|
|
5344
|
-
PyObject *pos_args = MAKE_TUPLE(args, 7);
|
|
5344
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args, 7);
|
|
5345
5345
|
|
|
5346
5346
|
PyObject *result = CALL_FUNCTION(tstate, called, pos_args, NULL);
|
|
5347
5347
|
|
|
@@ -5520,7 +5520,7 @@ PyObject *CALL_FUNCTION_WITH_POSARGS7(PyThreadState *tstate, PyObject *called, P
|
|
|
5520
5520
|
return Nuitka_CheckFunctionResult(tstate, called, result);
|
|
5521
5521
|
}
|
|
5522
5522
|
#endif
|
|
5523
|
-
#if !defined(_NUITKA_EXPERIMENTAL_DISABLE_UNCOMPILED_FUNCTION_CALL_OPT)
|
|
5523
|
+
#if PYTHON_VERSION < 0x380 && !defined(_NUITKA_EXPERIMENTAL_DISABLE_UNCOMPILED_FUNCTION_CALL_OPT)
|
|
5524
5524
|
} else if (PyFunction_Check(called)) {
|
|
5525
5525
|
#if PYTHON_VERSION < 0x3b0
|
|
5526
5526
|
PyObject *result = callPythonFunction(called, args, 7);
|
|
@@ -5858,7 +5858,7 @@ PyObject *CALL_FUNCTION_WITH_ARGS8(PyThreadState *tstate, PyObject *called, PyOb
|
|
|
5858
5858
|
PyObject *result;
|
|
5859
5859
|
|
|
5860
5860
|
#if PYTHON_VERSION < 0x360
|
|
5861
|
-
PyObject *pos_args = MAKE_TUPLE(args, 8);
|
|
5861
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args, 8);
|
|
5862
5862
|
if (flags & METH_KEYWORDS) {
|
|
5863
5863
|
result = (*(PyCFunctionWithKeywords)method)(self, pos_args, NULL);
|
|
5864
5864
|
} else {
|
|
@@ -5868,19 +5868,19 @@ PyObject *CALL_FUNCTION_WITH_ARGS8(PyThreadState *tstate, PyObject *called, PyOb
|
|
|
5868
5868
|
Py_DECREF(pos_args);
|
|
5869
5869
|
#else
|
|
5870
5870
|
if (flags == (METH_VARARGS | METH_KEYWORDS)) {
|
|
5871
|
-
PyObject *pos_args = MAKE_TUPLE(args, 8);
|
|
5871
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args, 8);
|
|
5872
5872
|
result = (*(PyCFunctionWithKeywords)method)(self, pos_args, NULL);
|
|
5873
5873
|
Py_DECREF(pos_args);
|
|
5874
5874
|
} else if (flags == METH_FASTCALL) {
|
|
5875
5875
|
#if PYTHON_VERSION < 0x370
|
|
5876
5876
|
result = (*(_PyCFunctionFast)method)(self, (PyObject **)args, 8, NULL);
|
|
5877
5877
|
#else
|
|
5878
|
-
PyObject *pos_args = MAKE_TUPLE(args, 8);
|
|
5878
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args, 8);
|
|
5879
5879
|
result = (*(_PyCFunctionFast)method)(self, &pos_args, 8);
|
|
5880
5880
|
Py_DECREF(pos_args);
|
|
5881
5881
|
#endif
|
|
5882
5882
|
} else {
|
|
5883
|
-
PyObject *pos_args = MAKE_TUPLE(args, 8);
|
|
5883
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args, 8);
|
|
5884
5884
|
result = (*method)(self, pos_args);
|
|
5885
5885
|
Py_DECREF(pos_args);
|
|
5886
5886
|
}
|
|
@@ -5895,7 +5895,7 @@ PyObject *CALL_FUNCTION_WITH_ARGS8(PyThreadState *tstate, PyObject *called, PyOb
|
|
|
5895
5895
|
return Nuitka_CheckFunctionResult(tstate, called, result);
|
|
5896
5896
|
}
|
|
5897
5897
|
#endif
|
|
5898
|
-
#if !defined(_NUITKA_EXPERIMENTAL_DISABLE_UNCOMPILED_FUNCTION_CALL_OPT)
|
|
5898
|
+
#if PYTHON_VERSION < 0x380 && !defined(_NUITKA_EXPERIMENTAL_DISABLE_UNCOMPILED_FUNCTION_CALL_OPT)
|
|
5899
5899
|
} else if (PyFunction_Check(called)) {
|
|
5900
5900
|
#if PYTHON_VERSION < 0x3b0
|
|
5901
5901
|
PyObject *result = callPythonFunction(called, args, 8);
|
|
@@ -5930,7 +5930,7 @@ PyObject *CALL_FUNCTION_WITH_ARGS8(PyThreadState *tstate, PyObject *called, PyOb
|
|
|
5930
5930
|
obj = called_type->tp_alloc(called_type, 0);
|
|
5931
5931
|
CHECK_OBJECT(obj);
|
|
5932
5932
|
} else {
|
|
5933
|
-
pos_args = MAKE_TUPLE(args, 8);
|
|
5933
|
+
pos_args = MAKE_TUPLE(tstate, args, 8);
|
|
5934
5934
|
obj = called_type->tp_new(called_type, pos_args, NULL);
|
|
5935
5935
|
}
|
|
5936
5936
|
|
|
@@ -6002,7 +6002,7 @@ PyObject *CALL_FUNCTION_WITH_ARGS8(PyThreadState *tstate, PyObject *called, PyOb
|
|
|
6002
6002
|
}
|
|
6003
6003
|
} else {
|
|
6004
6004
|
if (pos_args == NULL) {
|
|
6005
|
-
pos_args = MAKE_TUPLE(args, 8);
|
|
6005
|
+
pos_args = MAKE_TUPLE(tstate, args, 8);
|
|
6006
6006
|
}
|
|
6007
6007
|
|
|
6008
6008
|
if (unlikely(type->tp_init(obj, pos_args, NULL) < 0)) {
|
|
@@ -6101,7 +6101,7 @@ PyObject *CALL_FUNCTION_WITH_ARGS8(PyThreadState *tstate, PyObject *called, PyOb
|
|
|
6101
6101
|
PRINT_NEW_LINE();
|
|
6102
6102
|
#endif
|
|
6103
6103
|
|
|
6104
|
-
PyObject *pos_args = MAKE_TUPLE(args, 8);
|
|
6104
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args, 8);
|
|
6105
6105
|
|
|
6106
6106
|
PyObject *result = CALL_FUNCTION(tstate, called, pos_args, NULL);
|
|
6107
6107
|
|
|
@@ -6280,7 +6280,7 @@ PyObject *CALL_FUNCTION_WITH_POSARGS8(PyThreadState *tstate, PyObject *called, P
|
|
|
6280
6280
|
return Nuitka_CheckFunctionResult(tstate, called, result);
|
|
6281
6281
|
}
|
|
6282
6282
|
#endif
|
|
6283
|
-
#if !defined(_NUITKA_EXPERIMENTAL_DISABLE_UNCOMPILED_FUNCTION_CALL_OPT)
|
|
6283
|
+
#if PYTHON_VERSION < 0x380 && !defined(_NUITKA_EXPERIMENTAL_DISABLE_UNCOMPILED_FUNCTION_CALL_OPT)
|
|
6284
6284
|
} else if (PyFunction_Check(called)) {
|
|
6285
6285
|
#if PYTHON_VERSION < 0x3b0
|
|
6286
6286
|
PyObject *result = callPythonFunction(called, args, 8);
|
|
@@ -6618,7 +6618,7 @@ PyObject *CALL_FUNCTION_WITH_ARGS9(PyThreadState *tstate, PyObject *called, PyOb
|
|
|
6618
6618
|
PyObject *result;
|
|
6619
6619
|
|
|
6620
6620
|
#if PYTHON_VERSION < 0x360
|
|
6621
|
-
PyObject *pos_args = MAKE_TUPLE(args, 9);
|
|
6621
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args, 9);
|
|
6622
6622
|
if (flags & METH_KEYWORDS) {
|
|
6623
6623
|
result = (*(PyCFunctionWithKeywords)method)(self, pos_args, NULL);
|
|
6624
6624
|
} else {
|
|
@@ -6628,19 +6628,19 @@ PyObject *CALL_FUNCTION_WITH_ARGS9(PyThreadState *tstate, PyObject *called, PyOb
|
|
|
6628
6628
|
Py_DECREF(pos_args);
|
|
6629
6629
|
#else
|
|
6630
6630
|
if (flags == (METH_VARARGS | METH_KEYWORDS)) {
|
|
6631
|
-
PyObject *pos_args = MAKE_TUPLE(args, 9);
|
|
6631
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args, 9);
|
|
6632
6632
|
result = (*(PyCFunctionWithKeywords)method)(self, pos_args, NULL);
|
|
6633
6633
|
Py_DECREF(pos_args);
|
|
6634
6634
|
} else if (flags == METH_FASTCALL) {
|
|
6635
6635
|
#if PYTHON_VERSION < 0x370
|
|
6636
6636
|
result = (*(_PyCFunctionFast)method)(self, (PyObject **)args, 9, NULL);
|
|
6637
6637
|
#else
|
|
6638
|
-
PyObject *pos_args = MAKE_TUPLE(args, 9);
|
|
6638
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args, 9);
|
|
6639
6639
|
result = (*(_PyCFunctionFast)method)(self, &pos_args, 9);
|
|
6640
6640
|
Py_DECREF(pos_args);
|
|
6641
6641
|
#endif
|
|
6642
6642
|
} else {
|
|
6643
|
-
PyObject *pos_args = MAKE_TUPLE(args, 9);
|
|
6643
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args, 9);
|
|
6644
6644
|
result = (*method)(self, pos_args);
|
|
6645
6645
|
Py_DECREF(pos_args);
|
|
6646
6646
|
}
|
|
@@ -6655,7 +6655,7 @@ PyObject *CALL_FUNCTION_WITH_ARGS9(PyThreadState *tstate, PyObject *called, PyOb
|
|
|
6655
6655
|
return Nuitka_CheckFunctionResult(tstate, called, result);
|
|
6656
6656
|
}
|
|
6657
6657
|
#endif
|
|
6658
|
-
#if !defined(_NUITKA_EXPERIMENTAL_DISABLE_UNCOMPILED_FUNCTION_CALL_OPT)
|
|
6658
|
+
#if PYTHON_VERSION < 0x380 && !defined(_NUITKA_EXPERIMENTAL_DISABLE_UNCOMPILED_FUNCTION_CALL_OPT)
|
|
6659
6659
|
} else if (PyFunction_Check(called)) {
|
|
6660
6660
|
#if PYTHON_VERSION < 0x3b0
|
|
6661
6661
|
PyObject *result = callPythonFunction(called, args, 9);
|
|
@@ -6690,7 +6690,7 @@ PyObject *CALL_FUNCTION_WITH_ARGS9(PyThreadState *tstate, PyObject *called, PyOb
|
|
|
6690
6690
|
obj = called_type->tp_alloc(called_type, 0);
|
|
6691
6691
|
CHECK_OBJECT(obj);
|
|
6692
6692
|
} else {
|
|
6693
|
-
pos_args = MAKE_TUPLE(args, 9);
|
|
6693
|
+
pos_args = MAKE_TUPLE(tstate, args, 9);
|
|
6694
6694
|
obj = called_type->tp_new(called_type, pos_args, NULL);
|
|
6695
6695
|
}
|
|
6696
6696
|
|
|
@@ -6762,7 +6762,7 @@ PyObject *CALL_FUNCTION_WITH_ARGS9(PyThreadState *tstate, PyObject *called, PyOb
|
|
|
6762
6762
|
}
|
|
6763
6763
|
} else {
|
|
6764
6764
|
if (pos_args == NULL) {
|
|
6765
|
-
pos_args = MAKE_TUPLE(args, 9);
|
|
6765
|
+
pos_args = MAKE_TUPLE(tstate, args, 9);
|
|
6766
6766
|
}
|
|
6767
6767
|
|
|
6768
6768
|
if (unlikely(type->tp_init(obj, pos_args, NULL) < 0)) {
|
|
@@ -6861,7 +6861,7 @@ PyObject *CALL_FUNCTION_WITH_ARGS9(PyThreadState *tstate, PyObject *called, PyOb
|
|
|
6861
6861
|
PRINT_NEW_LINE();
|
|
6862
6862
|
#endif
|
|
6863
6863
|
|
|
6864
|
-
PyObject *pos_args = MAKE_TUPLE(args, 9);
|
|
6864
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args, 9);
|
|
6865
6865
|
|
|
6866
6866
|
PyObject *result = CALL_FUNCTION(tstate, called, pos_args, NULL);
|
|
6867
6867
|
|
|
@@ -7040,7 +7040,7 @@ PyObject *CALL_FUNCTION_WITH_POSARGS9(PyThreadState *tstate, PyObject *called, P
|
|
|
7040
7040
|
return Nuitka_CheckFunctionResult(tstate, called, result);
|
|
7041
7041
|
}
|
|
7042
7042
|
#endif
|
|
7043
|
-
#if !defined(_NUITKA_EXPERIMENTAL_DISABLE_UNCOMPILED_FUNCTION_CALL_OPT)
|
|
7043
|
+
#if PYTHON_VERSION < 0x380 && !defined(_NUITKA_EXPERIMENTAL_DISABLE_UNCOMPILED_FUNCTION_CALL_OPT)
|
|
7044
7044
|
} else if (PyFunction_Check(called)) {
|
|
7045
7045
|
#if PYTHON_VERSION < 0x3b0
|
|
7046
7046
|
PyObject *result = callPythonFunction(called, args, 9);
|
|
@@ -7378,7 +7378,7 @@ PyObject *CALL_FUNCTION_WITH_ARGS10(PyThreadState *tstate, PyObject *called, PyO
|
|
|
7378
7378
|
PyObject *result;
|
|
7379
7379
|
|
|
7380
7380
|
#if PYTHON_VERSION < 0x360
|
|
7381
|
-
PyObject *pos_args = MAKE_TUPLE(args, 10);
|
|
7381
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args, 10);
|
|
7382
7382
|
if (flags & METH_KEYWORDS) {
|
|
7383
7383
|
result = (*(PyCFunctionWithKeywords)method)(self, pos_args, NULL);
|
|
7384
7384
|
} else {
|
|
@@ -7388,19 +7388,19 @@ PyObject *CALL_FUNCTION_WITH_ARGS10(PyThreadState *tstate, PyObject *called, PyO
|
|
|
7388
7388
|
Py_DECREF(pos_args);
|
|
7389
7389
|
#else
|
|
7390
7390
|
if (flags == (METH_VARARGS | METH_KEYWORDS)) {
|
|
7391
|
-
PyObject *pos_args = MAKE_TUPLE(args, 10);
|
|
7391
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args, 10);
|
|
7392
7392
|
result = (*(PyCFunctionWithKeywords)method)(self, pos_args, NULL);
|
|
7393
7393
|
Py_DECREF(pos_args);
|
|
7394
7394
|
} else if (flags == METH_FASTCALL) {
|
|
7395
7395
|
#if PYTHON_VERSION < 0x370
|
|
7396
7396
|
result = (*(_PyCFunctionFast)method)(self, (PyObject **)args, 10, NULL);
|
|
7397
7397
|
#else
|
|
7398
|
-
PyObject *pos_args = MAKE_TUPLE(args, 10);
|
|
7398
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args, 10);
|
|
7399
7399
|
result = (*(_PyCFunctionFast)method)(self, &pos_args, 10);
|
|
7400
7400
|
Py_DECREF(pos_args);
|
|
7401
7401
|
#endif
|
|
7402
7402
|
} else {
|
|
7403
|
-
PyObject *pos_args = MAKE_TUPLE(args, 10);
|
|
7403
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args, 10);
|
|
7404
7404
|
result = (*method)(self, pos_args);
|
|
7405
7405
|
Py_DECREF(pos_args);
|
|
7406
7406
|
}
|
|
@@ -7415,7 +7415,7 @@ PyObject *CALL_FUNCTION_WITH_ARGS10(PyThreadState *tstate, PyObject *called, PyO
|
|
|
7415
7415
|
return Nuitka_CheckFunctionResult(tstate, called, result);
|
|
7416
7416
|
}
|
|
7417
7417
|
#endif
|
|
7418
|
-
#if !defined(_NUITKA_EXPERIMENTAL_DISABLE_UNCOMPILED_FUNCTION_CALL_OPT)
|
|
7418
|
+
#if PYTHON_VERSION < 0x380 && !defined(_NUITKA_EXPERIMENTAL_DISABLE_UNCOMPILED_FUNCTION_CALL_OPT)
|
|
7419
7419
|
} else if (PyFunction_Check(called)) {
|
|
7420
7420
|
#if PYTHON_VERSION < 0x3b0
|
|
7421
7421
|
PyObject *result = callPythonFunction(called, args, 10);
|
|
@@ -7450,7 +7450,7 @@ PyObject *CALL_FUNCTION_WITH_ARGS10(PyThreadState *tstate, PyObject *called, PyO
|
|
|
7450
7450
|
obj = called_type->tp_alloc(called_type, 0);
|
|
7451
7451
|
CHECK_OBJECT(obj);
|
|
7452
7452
|
} else {
|
|
7453
|
-
pos_args = MAKE_TUPLE(args, 10);
|
|
7453
|
+
pos_args = MAKE_TUPLE(tstate, args, 10);
|
|
7454
7454
|
obj = called_type->tp_new(called_type, pos_args, NULL);
|
|
7455
7455
|
}
|
|
7456
7456
|
|
|
@@ -7522,7 +7522,7 @@ PyObject *CALL_FUNCTION_WITH_ARGS10(PyThreadState *tstate, PyObject *called, PyO
|
|
|
7522
7522
|
}
|
|
7523
7523
|
} else {
|
|
7524
7524
|
if (pos_args == NULL) {
|
|
7525
|
-
pos_args = MAKE_TUPLE(args, 10);
|
|
7525
|
+
pos_args = MAKE_TUPLE(tstate, args, 10);
|
|
7526
7526
|
}
|
|
7527
7527
|
|
|
7528
7528
|
if (unlikely(type->tp_init(obj, pos_args, NULL) < 0)) {
|
|
@@ -7621,7 +7621,7 @@ PyObject *CALL_FUNCTION_WITH_ARGS10(PyThreadState *tstate, PyObject *called, PyO
|
|
|
7621
7621
|
PRINT_NEW_LINE();
|
|
7622
7622
|
#endif
|
|
7623
7623
|
|
|
7624
|
-
PyObject *pos_args = MAKE_TUPLE(args, 10);
|
|
7624
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args, 10);
|
|
7625
7625
|
|
|
7626
7626
|
PyObject *result = CALL_FUNCTION(tstate, called, pos_args, NULL);
|
|
7627
7627
|
|
|
@@ -7800,7 +7800,7 @@ PyObject *CALL_FUNCTION_WITH_POSARGS10(PyThreadState *tstate, PyObject *called,
|
|
|
7800
7800
|
return Nuitka_CheckFunctionResult(tstate, called, result);
|
|
7801
7801
|
}
|
|
7802
7802
|
#endif
|
|
7803
|
-
#if !defined(_NUITKA_EXPERIMENTAL_DISABLE_UNCOMPILED_FUNCTION_CALL_OPT)
|
|
7803
|
+
#if PYTHON_VERSION < 0x380 && !defined(_NUITKA_EXPERIMENTAL_DISABLE_UNCOMPILED_FUNCTION_CALL_OPT)
|
|
7804
7804
|
} else if (PyFunction_Check(called)) {
|
|
7805
7805
|
#if PYTHON_VERSION < 0x3b0
|
|
7806
7806
|
PyObject *result = callPythonFunction(called, args, 10);
|
|
@@ -8141,7 +8141,7 @@ PyObject *CALL_FUNCTION_WITH_ARGS1_VECTORCALL(PyThreadState *tstate, PyObject *c
|
|
|
8141
8141
|
return NULL;
|
|
8142
8142
|
}
|
|
8143
8143
|
|
|
8144
|
-
PyObject *pos_args = MAKE_TUPLE(args, 1);
|
|
8144
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args, 1);
|
|
8145
8145
|
|
|
8146
8146
|
PyObject *named_args = _PyDict_NewPresized(nkwargs);
|
|
8147
8147
|
|
|
@@ -8229,7 +8229,7 @@ PyObject *CALL_FUNCTION_WITH_ARGS1_KWSPLIT(PyThreadState *tstate, PyObject *call
|
|
|
8229
8229
|
return NULL;
|
|
8230
8230
|
}
|
|
8231
8231
|
|
|
8232
|
-
PyObject *pos_args = MAKE_TUPLE(args, 1);
|
|
8232
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args, 1);
|
|
8233
8233
|
|
|
8234
8234
|
PyObject *named_args = _PyDict_NewPresized(nkwargs);
|
|
8235
8235
|
|
|
@@ -8400,7 +8400,7 @@ PyObject *CALL_FUNCTION_WITH_ARGS2_VECTORCALL(PyThreadState *tstate, PyObject *c
|
|
|
8400
8400
|
return NULL;
|
|
8401
8401
|
}
|
|
8402
8402
|
|
|
8403
|
-
PyObject *pos_args = MAKE_TUPLE(args, 2);
|
|
8403
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args, 2);
|
|
8404
8404
|
|
|
8405
8405
|
PyObject *named_args = _PyDict_NewPresized(nkwargs);
|
|
8406
8406
|
|
|
@@ -8488,7 +8488,7 @@ PyObject *CALL_FUNCTION_WITH_ARGS2_KWSPLIT(PyThreadState *tstate, PyObject *call
|
|
|
8488
8488
|
return NULL;
|
|
8489
8489
|
}
|
|
8490
8490
|
|
|
8491
|
-
PyObject *pos_args = MAKE_TUPLE(args, 2);
|
|
8491
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args, 2);
|
|
8492
8492
|
|
|
8493
8493
|
PyObject *named_args = _PyDict_NewPresized(nkwargs);
|
|
8494
8494
|
|
|
@@ -8659,7 +8659,7 @@ PyObject *CALL_FUNCTION_WITH_ARGS3_VECTORCALL(PyThreadState *tstate, PyObject *c
|
|
|
8659
8659
|
return NULL;
|
|
8660
8660
|
}
|
|
8661
8661
|
|
|
8662
|
-
PyObject *pos_args = MAKE_TUPLE(args, 3);
|
|
8662
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args, 3);
|
|
8663
8663
|
|
|
8664
8664
|
PyObject *named_args = _PyDict_NewPresized(nkwargs);
|
|
8665
8665
|
|
|
@@ -8747,7 +8747,7 @@ PyObject *CALL_FUNCTION_WITH_ARGS3_KWSPLIT(PyThreadState *tstate, PyObject *call
|
|
|
8747
8747
|
return NULL;
|
|
8748
8748
|
}
|
|
8749
8749
|
|
|
8750
|
-
PyObject *pos_args = MAKE_TUPLE(args, 3);
|
|
8750
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args, 3);
|
|
8751
8751
|
|
|
8752
8752
|
PyObject *named_args = _PyDict_NewPresized(nkwargs);
|
|
8753
8753
|
|
|
@@ -8918,7 +8918,7 @@ PyObject *CALL_FUNCTION_WITH_ARGS4_VECTORCALL(PyThreadState *tstate, PyObject *c
|
|
|
8918
8918
|
return NULL;
|
|
8919
8919
|
}
|
|
8920
8920
|
|
|
8921
|
-
PyObject *pos_args = MAKE_TUPLE(args, 4);
|
|
8921
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args, 4);
|
|
8922
8922
|
|
|
8923
8923
|
PyObject *named_args = _PyDict_NewPresized(nkwargs);
|
|
8924
8924
|
|
|
@@ -9006,7 +9006,7 @@ PyObject *CALL_FUNCTION_WITH_ARGS4_KWSPLIT(PyThreadState *tstate, PyObject *call
|
|
|
9006
9006
|
return NULL;
|
|
9007
9007
|
}
|
|
9008
9008
|
|
|
9009
|
-
PyObject *pos_args = MAKE_TUPLE(args, 4);
|
|
9009
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args, 4);
|
|
9010
9010
|
|
|
9011
9011
|
PyObject *named_args = _PyDict_NewPresized(nkwargs);
|
|
9012
9012
|
|
|
@@ -9177,7 +9177,7 @@ PyObject *CALL_FUNCTION_WITH_ARGS5_VECTORCALL(PyThreadState *tstate, PyObject *c
|
|
|
9177
9177
|
return NULL;
|
|
9178
9178
|
}
|
|
9179
9179
|
|
|
9180
|
-
PyObject *pos_args = MAKE_TUPLE(args, 5);
|
|
9180
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args, 5);
|
|
9181
9181
|
|
|
9182
9182
|
PyObject *named_args = _PyDict_NewPresized(nkwargs);
|
|
9183
9183
|
|
|
@@ -9265,7 +9265,7 @@ PyObject *CALL_FUNCTION_WITH_ARGS5_KWSPLIT(PyThreadState *tstate, PyObject *call
|
|
|
9265
9265
|
return NULL;
|
|
9266
9266
|
}
|
|
9267
9267
|
|
|
9268
|
-
PyObject *pos_args = MAKE_TUPLE(args, 5);
|
|
9268
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args, 5);
|
|
9269
9269
|
|
|
9270
9270
|
PyObject *named_args = _PyDict_NewPresized(nkwargs);
|
|
9271
9271
|
|
|
@@ -9436,7 +9436,7 @@ PyObject *CALL_FUNCTION_WITH_ARGS6_VECTORCALL(PyThreadState *tstate, PyObject *c
|
|
|
9436
9436
|
return NULL;
|
|
9437
9437
|
}
|
|
9438
9438
|
|
|
9439
|
-
PyObject *pos_args = MAKE_TUPLE(args, 6);
|
|
9439
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args, 6);
|
|
9440
9440
|
|
|
9441
9441
|
PyObject *named_args = _PyDict_NewPresized(nkwargs);
|
|
9442
9442
|
|
|
@@ -9524,7 +9524,7 @@ PyObject *CALL_FUNCTION_WITH_ARGS6_KWSPLIT(PyThreadState *tstate, PyObject *call
|
|
|
9524
9524
|
return NULL;
|
|
9525
9525
|
}
|
|
9526
9526
|
|
|
9527
|
-
PyObject *pos_args = MAKE_TUPLE(args, 6);
|
|
9527
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args, 6);
|
|
9528
9528
|
|
|
9529
9529
|
PyObject *named_args = _PyDict_NewPresized(nkwargs);
|
|
9530
9530
|
|
|
@@ -9695,7 +9695,7 @@ PyObject *CALL_FUNCTION_WITH_ARGS7_VECTORCALL(PyThreadState *tstate, PyObject *c
|
|
|
9695
9695
|
return NULL;
|
|
9696
9696
|
}
|
|
9697
9697
|
|
|
9698
|
-
PyObject *pos_args = MAKE_TUPLE(args, 7);
|
|
9698
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args, 7);
|
|
9699
9699
|
|
|
9700
9700
|
PyObject *named_args = _PyDict_NewPresized(nkwargs);
|
|
9701
9701
|
|
|
@@ -9783,7 +9783,7 @@ PyObject *CALL_FUNCTION_WITH_ARGS7_KWSPLIT(PyThreadState *tstate, PyObject *call
|
|
|
9783
9783
|
return NULL;
|
|
9784
9784
|
}
|
|
9785
9785
|
|
|
9786
|
-
PyObject *pos_args = MAKE_TUPLE(args, 7);
|
|
9786
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args, 7);
|
|
9787
9787
|
|
|
9788
9788
|
PyObject *named_args = _PyDict_NewPresized(nkwargs);
|
|
9789
9789
|
|
|
@@ -9954,7 +9954,7 @@ PyObject *CALL_FUNCTION_WITH_ARGS8_VECTORCALL(PyThreadState *tstate, PyObject *c
|
|
|
9954
9954
|
return NULL;
|
|
9955
9955
|
}
|
|
9956
9956
|
|
|
9957
|
-
PyObject *pos_args = MAKE_TUPLE(args, 8);
|
|
9957
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args, 8);
|
|
9958
9958
|
|
|
9959
9959
|
PyObject *named_args = _PyDict_NewPresized(nkwargs);
|
|
9960
9960
|
|
|
@@ -10042,7 +10042,7 @@ PyObject *CALL_FUNCTION_WITH_ARGS8_KWSPLIT(PyThreadState *tstate, PyObject *call
|
|
|
10042
10042
|
return NULL;
|
|
10043
10043
|
}
|
|
10044
10044
|
|
|
10045
|
-
PyObject *pos_args = MAKE_TUPLE(args, 8);
|
|
10045
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args, 8);
|
|
10046
10046
|
|
|
10047
10047
|
PyObject *named_args = _PyDict_NewPresized(nkwargs);
|
|
10048
10048
|
|
|
@@ -10213,7 +10213,7 @@ PyObject *CALL_FUNCTION_WITH_ARGS9_VECTORCALL(PyThreadState *tstate, PyObject *c
|
|
|
10213
10213
|
return NULL;
|
|
10214
10214
|
}
|
|
10215
10215
|
|
|
10216
|
-
PyObject *pos_args = MAKE_TUPLE(args, 9);
|
|
10216
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args, 9);
|
|
10217
10217
|
|
|
10218
10218
|
PyObject *named_args = _PyDict_NewPresized(nkwargs);
|
|
10219
10219
|
|
|
@@ -10301,7 +10301,7 @@ PyObject *CALL_FUNCTION_WITH_ARGS9_KWSPLIT(PyThreadState *tstate, PyObject *call
|
|
|
10301
10301
|
return NULL;
|
|
10302
10302
|
}
|
|
10303
10303
|
|
|
10304
|
-
PyObject *pos_args = MAKE_TUPLE(args, 9);
|
|
10304
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args, 9);
|
|
10305
10305
|
|
|
10306
10306
|
PyObject *named_args = _PyDict_NewPresized(nkwargs);
|
|
10307
10307
|
|
|
@@ -10472,7 +10472,7 @@ PyObject *CALL_FUNCTION_WITH_ARGS10_VECTORCALL(PyThreadState *tstate, PyObject *
|
|
|
10472
10472
|
return NULL;
|
|
10473
10473
|
}
|
|
10474
10474
|
|
|
10475
|
-
PyObject *pos_args = MAKE_TUPLE(args, 10);
|
|
10475
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args, 10);
|
|
10476
10476
|
|
|
10477
10477
|
PyObject *named_args = _PyDict_NewPresized(nkwargs);
|
|
10478
10478
|
|
|
@@ -10560,7 +10560,7 @@ PyObject *CALL_FUNCTION_WITH_ARGS10_KWSPLIT(PyThreadState *tstate, PyObject *cal
|
|
|
10560
10560
|
return NULL;
|
|
10561
10561
|
}
|
|
10562
10562
|
|
|
10563
|
-
PyObject *pos_args = MAKE_TUPLE(args, 10);
|
|
10563
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args, 10);
|
|
10564
10564
|
|
|
10565
10565
|
PyObject *named_args = _PyDict_NewPresized(nkwargs);
|
|
10566
10566
|
|
|
@@ -10718,7 +10718,7 @@ PyObject *CALL_METHODDESCR_WITH_SINGLE_ARG(PyThreadState *tstate, PyObject *call
|
|
|
10718
10718
|
PyObject *result;
|
|
10719
10719
|
|
|
10720
10720
|
#if PYTHON_VERSION < 0x360
|
|
10721
|
-
PyObject *pos_args = MAKE_TUPLE(args + 1, 0);
|
|
10721
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args + 1, 0);
|
|
10722
10722
|
|
|
10723
10723
|
if (flags & METH_KEYWORDS) {
|
|
10724
10724
|
result = (*(PyCFunctionWithKeywords)method)(self, pos_args, NULL);
|
|
@@ -10729,19 +10729,19 @@ PyObject *CALL_METHODDESCR_WITH_SINGLE_ARG(PyThreadState *tstate, PyObject *call
|
|
|
10729
10729
|
Py_DECREF(pos_args);
|
|
10730
10730
|
#else
|
|
10731
10731
|
if (flags == (METH_VARARGS | METH_KEYWORDS)) {
|
|
10732
|
-
PyObject *pos_args = MAKE_TUPLE(args + 1, 0);
|
|
10732
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args + 1, 0);
|
|
10733
10733
|
result = (*(PyCFunctionWithKeywords)method)(self, pos_args, NULL);
|
|
10734
10734
|
Py_DECREF(pos_args);
|
|
10735
10735
|
} else if (flags == METH_FASTCALL) {
|
|
10736
10736
|
#if PYTHON_VERSION < 0x370
|
|
10737
10737
|
result = (*(_PyCFunctionFast)method)(self, (PyObject **)args + 1, 0, NULL);
|
|
10738
10738
|
#else
|
|
10739
|
-
PyObject *pos_args = MAKE_TUPLE(args + 1, 0);
|
|
10739
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args + 1, 0);
|
|
10740
10740
|
result = (*(_PyCFunctionFast)method)(self, &pos_args, 1);
|
|
10741
10741
|
Py_DECREF(pos_args);
|
|
10742
10742
|
#endif
|
|
10743
10743
|
} else {
|
|
10744
|
-
PyObject *pos_args = MAKE_TUPLE(args + 1, 0);
|
|
10744
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args + 1, 0);
|
|
10745
10745
|
result = (*method)(self, pos_args);
|
|
10746
10746
|
Py_DECREF(pos_args);
|
|
10747
10747
|
}
|
|
@@ -10760,7 +10760,7 @@ PyObject *CALL_METHODDESCR_WITH_SINGLE_ARG(PyThreadState *tstate, PyObject *call
|
|
|
10760
10760
|
PRINT_NEW_LINE();
|
|
10761
10761
|
#endif
|
|
10762
10762
|
|
|
10763
|
-
PyObject *pos_args = MAKE_TUPLE(args, 1);
|
|
10763
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args, 1);
|
|
10764
10764
|
|
|
10765
10765
|
PyObject *result = CALL_FUNCTION(tstate, called, pos_args, NULL);
|
|
10766
10766
|
|
|
@@ -10820,7 +10820,7 @@ PyObject *CALL_METHODDESCR_WITH_ARGS2(PyThreadState *tstate, PyObject *called, P
|
|
|
10820
10820
|
PyObject *result;
|
|
10821
10821
|
|
|
10822
10822
|
#if PYTHON_VERSION < 0x360
|
|
10823
|
-
PyObject *pos_args = MAKE_TUPLE(args + 1, 1);
|
|
10823
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args + 1, 1);
|
|
10824
10824
|
|
|
10825
10825
|
if (flags & METH_KEYWORDS) {
|
|
10826
10826
|
result = (*(PyCFunctionWithKeywords)method)(self, pos_args, NULL);
|
|
@@ -10831,19 +10831,19 @@ PyObject *CALL_METHODDESCR_WITH_ARGS2(PyThreadState *tstate, PyObject *called, P
|
|
|
10831
10831
|
Py_DECREF(pos_args);
|
|
10832
10832
|
#else
|
|
10833
10833
|
if (flags == (METH_VARARGS | METH_KEYWORDS)) {
|
|
10834
|
-
PyObject *pos_args = MAKE_TUPLE(args + 1, 1);
|
|
10834
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args + 1, 1);
|
|
10835
10835
|
result = (*(PyCFunctionWithKeywords)method)(self, pos_args, NULL);
|
|
10836
10836
|
Py_DECREF(pos_args);
|
|
10837
10837
|
} else if (flags == METH_FASTCALL) {
|
|
10838
10838
|
#if PYTHON_VERSION < 0x370
|
|
10839
10839
|
result = (*(_PyCFunctionFast)method)(self, (PyObject **)args + 1, 1, NULL);
|
|
10840
10840
|
#else
|
|
10841
|
-
PyObject *pos_args = MAKE_TUPLE(args + 1, 1);
|
|
10841
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args + 1, 1);
|
|
10842
10842
|
result = (*(_PyCFunctionFast)method)(self, &pos_args, 2);
|
|
10843
10843
|
Py_DECREF(pos_args);
|
|
10844
10844
|
#endif
|
|
10845
10845
|
} else {
|
|
10846
|
-
PyObject *pos_args = MAKE_TUPLE(args + 1, 1);
|
|
10846
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args + 1, 1);
|
|
10847
10847
|
result = (*method)(self, pos_args);
|
|
10848
10848
|
Py_DECREF(pos_args);
|
|
10849
10849
|
}
|
|
@@ -10862,7 +10862,7 @@ PyObject *CALL_METHODDESCR_WITH_ARGS2(PyThreadState *tstate, PyObject *called, P
|
|
|
10862
10862
|
PRINT_NEW_LINE();
|
|
10863
10863
|
#endif
|
|
10864
10864
|
|
|
10865
|
-
PyObject *pos_args = MAKE_TUPLE(args, 2);
|
|
10865
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args, 2);
|
|
10866
10866
|
|
|
10867
10867
|
PyObject *result = CALL_FUNCTION(tstate, called, pos_args, NULL);
|
|
10868
10868
|
|
|
@@ -10915,7 +10915,7 @@ PyObject *CALL_METHODDESCR_WITH_ARGS3(PyThreadState *tstate, PyObject *called, P
|
|
|
10915
10915
|
PyObject *result;
|
|
10916
10916
|
|
|
10917
10917
|
#if PYTHON_VERSION < 0x360
|
|
10918
|
-
PyObject *pos_args = MAKE_TUPLE(args + 1, 2);
|
|
10918
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args + 1, 2);
|
|
10919
10919
|
|
|
10920
10920
|
if (flags & METH_KEYWORDS) {
|
|
10921
10921
|
result = (*(PyCFunctionWithKeywords)method)(self, pos_args, NULL);
|
|
@@ -10926,19 +10926,19 @@ PyObject *CALL_METHODDESCR_WITH_ARGS3(PyThreadState *tstate, PyObject *called, P
|
|
|
10926
10926
|
Py_DECREF(pos_args);
|
|
10927
10927
|
#else
|
|
10928
10928
|
if (flags == (METH_VARARGS | METH_KEYWORDS)) {
|
|
10929
|
-
PyObject *pos_args = MAKE_TUPLE(args + 1, 2);
|
|
10929
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args + 1, 2);
|
|
10930
10930
|
result = (*(PyCFunctionWithKeywords)method)(self, pos_args, NULL);
|
|
10931
10931
|
Py_DECREF(pos_args);
|
|
10932
10932
|
} else if (flags == METH_FASTCALL) {
|
|
10933
10933
|
#if PYTHON_VERSION < 0x370
|
|
10934
10934
|
result = (*(_PyCFunctionFast)method)(self, (PyObject **)args + 1, 2, NULL);
|
|
10935
10935
|
#else
|
|
10936
|
-
PyObject *pos_args = MAKE_TUPLE(args + 1, 2);
|
|
10936
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args + 1, 2);
|
|
10937
10937
|
result = (*(_PyCFunctionFast)method)(self, &pos_args, 3);
|
|
10938
10938
|
Py_DECREF(pos_args);
|
|
10939
10939
|
#endif
|
|
10940
10940
|
} else {
|
|
10941
|
-
PyObject *pos_args = MAKE_TUPLE(args + 1, 2);
|
|
10941
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args + 1, 2);
|
|
10942
10942
|
result = (*method)(self, pos_args);
|
|
10943
10943
|
Py_DECREF(pos_args);
|
|
10944
10944
|
}
|
|
@@ -10957,7 +10957,7 @@ PyObject *CALL_METHODDESCR_WITH_ARGS3(PyThreadState *tstate, PyObject *called, P
|
|
|
10957
10957
|
PRINT_NEW_LINE();
|
|
10958
10958
|
#endif
|
|
10959
10959
|
|
|
10960
|
-
PyObject *pos_args = MAKE_TUPLE(args, 3);
|
|
10960
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args, 3);
|
|
10961
10961
|
|
|
10962
10962
|
PyObject *result = CALL_FUNCTION(tstate, called, pos_args, NULL);
|
|
10963
10963
|
|
|
@@ -11010,7 +11010,7 @@ PyObject *CALL_METHODDESCR_WITH_ARGS4(PyThreadState *tstate, PyObject *called, P
|
|
|
11010
11010
|
PyObject *result;
|
|
11011
11011
|
|
|
11012
11012
|
#if PYTHON_VERSION < 0x360
|
|
11013
|
-
PyObject *pos_args = MAKE_TUPLE(args + 1, 3);
|
|
11013
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args + 1, 3);
|
|
11014
11014
|
|
|
11015
11015
|
if (flags & METH_KEYWORDS) {
|
|
11016
11016
|
result = (*(PyCFunctionWithKeywords)method)(self, pos_args, NULL);
|
|
@@ -11021,19 +11021,19 @@ PyObject *CALL_METHODDESCR_WITH_ARGS4(PyThreadState *tstate, PyObject *called, P
|
|
|
11021
11021
|
Py_DECREF(pos_args);
|
|
11022
11022
|
#else
|
|
11023
11023
|
if (flags == (METH_VARARGS | METH_KEYWORDS)) {
|
|
11024
|
-
PyObject *pos_args = MAKE_TUPLE(args + 1, 3);
|
|
11024
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args + 1, 3);
|
|
11025
11025
|
result = (*(PyCFunctionWithKeywords)method)(self, pos_args, NULL);
|
|
11026
11026
|
Py_DECREF(pos_args);
|
|
11027
11027
|
} else if (flags == METH_FASTCALL) {
|
|
11028
11028
|
#if PYTHON_VERSION < 0x370
|
|
11029
11029
|
result = (*(_PyCFunctionFast)method)(self, (PyObject **)args + 1, 3, NULL);
|
|
11030
11030
|
#else
|
|
11031
|
-
PyObject *pos_args = MAKE_TUPLE(args + 1, 3);
|
|
11031
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args + 1, 3);
|
|
11032
11032
|
result = (*(_PyCFunctionFast)method)(self, &pos_args, 4);
|
|
11033
11033
|
Py_DECREF(pos_args);
|
|
11034
11034
|
#endif
|
|
11035
11035
|
} else {
|
|
11036
|
-
PyObject *pos_args = MAKE_TUPLE(args + 1, 3);
|
|
11036
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args + 1, 3);
|
|
11037
11037
|
result = (*method)(self, pos_args);
|
|
11038
11038
|
Py_DECREF(pos_args);
|
|
11039
11039
|
}
|
|
@@ -11052,7 +11052,7 @@ PyObject *CALL_METHODDESCR_WITH_ARGS4(PyThreadState *tstate, PyObject *called, P
|
|
|
11052
11052
|
PRINT_NEW_LINE();
|
|
11053
11053
|
#endif
|
|
11054
11054
|
|
|
11055
|
-
PyObject *pos_args = MAKE_TUPLE(args, 4);
|
|
11055
|
+
PyObject *pos_args = MAKE_TUPLE(tstate, args, 4);
|
|
11056
11056
|
|
|
11057
11057
|
PyObject *result = CALL_FUNCTION(tstate, called, pos_args, NULL);
|
|
11058
11058
|
|