Nuitka-winsvc 1.8__cp311-cp311-win_amd64.whl → 2.4.8__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.
Potentially problematic release.
This version of Nuitka-winsvc might be problematic. Click here for more details.
- Nuitka_winsvc-1.8.data/scripts/nuitka-run.bat → Nuitka_winsvc-2.4.8.data/scripts/nuitka-run.cmd +9 -9
- Nuitka_winsvc-1.8.data/scripts/nuitka.bat → Nuitka_winsvc-2.4.8.data/scripts/nuitka.cmd +15 -15
- {Nuitka_winsvc-1.8.dist-info → Nuitka_winsvc-2.4.8.dist-info}/METADATA +4 -3
- Nuitka_winsvc-2.4.8.dist-info/RECORD +954 -0
- {Nuitka_winsvc-1.8.dist-info → Nuitka_winsvc-2.4.8.dist-info}/WHEEL +1 -1
- nuitka/Builtins.py +18 -17
- nuitka/BytecodeCaching.py +24 -20
- nuitka/Bytecodes.py +23 -19
- nuitka/CacheCleanup.py +28 -23
- nuitka/Constants.py +19 -17
- nuitka/Errors.py +23 -17
- nuitka/HardImportRegistry.py +400 -0
- nuitka/MainControl.py +200 -112
- nuitka/ModuleRegistry.py +83 -20
- nuitka/OptionParsing.py +368 -175
- nuitka/Options.py +632 -213
- nuitka/OutputDirectories.py +40 -21
- nuitka/PostProcessing.py +73 -50
- nuitka/Progress.py +58 -24
- nuitka/PythonFlavors.py +141 -32
- nuitka/PythonOperators.py +18 -17
- nuitka/PythonVersions.py +106 -19
- nuitka/Serialization.py +68 -55
- nuitka/SourceCodeReferences.py +19 -17
- nuitka/Tracing.py +108 -70
- nuitka/TreeXML.py +31 -26
- nuitka/Variables.py +39 -41
- nuitka/Version.py +21 -7
- nuitka/__init__.py +5 -4
- nuitka/__main__.py +95 -29
- nuitka/__past__.py +44 -34
- nuitka/build/Backend.scons +202 -140
- nuitka/build/CCompilerVersion.scons +39 -31
- nuitka/build/DataComposerInterface.py +20 -17
- nuitka/build/Onefile.scons +50 -54
- nuitka/build/SconsCaching.py +93 -90
- nuitka/build/SconsCompilerSettings.py +157 -69
- nuitka/build/SconsHacks.py +25 -19
- nuitka/build/SconsInterface.py +154 -54
- nuitka/build/SconsProgress.py +19 -18
- nuitka/build/SconsSpawn.py +62 -33
- nuitka/build/SconsUtils.py +147 -55
- nuitka/build/__init__.py +5 -4
- nuitka/build/include/nuitka/allocator.h +105 -22
- nuitka/build/include/nuitka/builtins.h +17 -17
- nuitka/build/include/nuitka/calling.h +18 -18
- nuitka/build/include/nuitka/checkers.h +17 -18
- nuitka/build/include/nuitka/checksum_tools.h +14 -19
- nuitka/build/include/nuitka/compiled_asyncgen.h +18 -18
- nuitka/build/include/nuitka/compiled_cell.h +33 -18
- nuitka/build/include/nuitka/compiled_coroutine.h +18 -18
- nuitka/build/include/nuitka/compiled_frame.h +91 -53
- nuitka/build/include/nuitka/compiled_function.h +42 -20
- nuitka/build/include/nuitka/compiled_generator.h +24 -18
- nuitka/build/include/nuitka/compiled_method.h +17 -18
- nuitka/build/include/nuitka/constants.h +29 -18
- nuitka/build/include/nuitka/constants_blob.h +17 -17
- nuitka/build/include/nuitka/environment_variables.h +30 -0
- nuitka/build/include/nuitka/environment_variables_system.h +45 -0
- nuitka/build/include/nuitka/exception_groups.h +23 -26
- nuitka/build/include/nuitka/exceptions.h +593 -190
- nuitka/build/include/nuitka/filesystem_paths.h +26 -20
- nuitka/build/include/nuitka/freelists.h +38 -18
- nuitka/build/include/nuitka/helper/attributes.h +24 -18
- nuitka/build/include/nuitka/helper/boolean.h +17 -17
- nuitka/build/include/nuitka/helper/bytearrays.h +17 -17
- nuitka/build/include/nuitka/helper/bytes.h +14 -15
- nuitka/build/include/nuitka/helper/calling_generated.h +17 -17
- nuitka/build/include/nuitka/helper/comparisons_eq.h +17 -17
- nuitka/build/include/nuitka/helper/comparisons_ge.h +17 -17
- nuitka/build/include/nuitka/helper/comparisons_gt.h +17 -17
- nuitka/build/include/nuitka/helper/comparisons_le.h +17 -17
- nuitka/build/include/nuitka/helper/comparisons_lt.h +17 -17
- nuitka/build/include/nuitka/helper/comparisons_ne.h +17 -17
- nuitka/build/include/nuitka/helper/complex.h +17 -17
- nuitka/build/include/nuitka/helper/dictionaries.h +24 -22
- nuitka/build/include/nuitka/helper/floats.h +17 -18
- nuitka/build/include/nuitka/helper/import_hard.h +25 -17
- nuitka/build/include/nuitka/helper/indexes.h +17 -18
- nuitka/build/include/nuitka/helper/ints.h +32 -20
- nuitka/build/include/nuitka/helper/iterators.h +17 -17
- nuitka/build/include/nuitka/helper/lists.h +26 -24
- nuitka/build/include/nuitka/helper/lists_generated.h +22 -22
- nuitka/build/include/nuitka/helper/mappings.h +17 -18
- nuitka/build/include/nuitka/helper/operations.h +17 -17
- nuitka/build/include/nuitka/helper/operations_binary_add.h +17 -17
- nuitka/build/include/nuitka/helper/operations_binary_bitand.h +17 -17
- nuitka/build/include/nuitka/helper/operations_binary_bitor.h +17 -17
- nuitka/build/include/nuitka/helper/operations_binary_bitxor.h +17 -17
- nuitka/build/include/nuitka/helper/operations_binary_divmod.h +17 -17
- nuitka/build/include/nuitka/helper/operations_binary_floordiv.h +17 -17
- nuitka/build/include/nuitka/helper/operations_binary_lshift.h +17 -17
- nuitka/build/include/nuitka/helper/operations_binary_matmult.h +17 -17
- nuitka/build/include/nuitka/helper/operations_binary_mod.h +17 -17
- nuitka/build/include/nuitka/helper/operations_binary_mult.h +17 -17
- nuitka/build/include/nuitka/helper/operations_binary_olddiv.h +17 -17
- nuitka/build/include/nuitka/helper/operations_binary_pow.h +17 -17
- nuitka/build/include/nuitka/helper/operations_binary_rshift.h +17 -17
- nuitka/build/include/nuitka/helper/operations_binary_sub.h +17 -17
- nuitka/build/include/nuitka/helper/operations_binary_truediv.h +17 -17
- nuitka/build/include/nuitka/helper/operations_builtin_types.h +17 -17
- nuitka/build/include/nuitka/helper/operations_inplace_add.h +17 -17
- nuitka/build/include/nuitka/helper/operations_inplace_bitand.h +17 -17
- nuitka/build/include/nuitka/helper/operations_inplace_bitor.h +17 -17
- nuitka/build/include/nuitka/helper/operations_inplace_bitxor.h +17 -17
- nuitka/build/include/nuitka/helper/operations_inplace_floordiv.h +17 -17
- nuitka/build/include/nuitka/helper/operations_inplace_lshift.h +17 -17
- nuitka/build/include/nuitka/helper/operations_inplace_matmult.h +17 -17
- nuitka/build/include/nuitka/helper/operations_inplace_mod.h +17 -17
- nuitka/build/include/nuitka/helper/operations_inplace_mult.h +17 -17
- nuitka/build/include/nuitka/helper/operations_inplace_olddiv.h +17 -17
- nuitka/build/include/nuitka/helper/operations_inplace_pow.h +17 -17
- nuitka/build/include/nuitka/helper/operations_inplace_rshift.h +17 -17
- nuitka/build/include/nuitka/helper/operations_inplace_sub.h +17 -17
- nuitka/build/include/nuitka/helper/operations_inplace_truediv.h +17 -17
- nuitka/build/include/nuitka/helper/raising.h +29 -17
- nuitka/build/include/nuitka/helper/rangeobjects.h +17 -17
- nuitka/build/include/nuitka/helper/richcomparisons.h +14 -14
- nuitka/build/include/nuitka/helper/sequences.h +19 -13
- nuitka/build/include/nuitka/helper/sets.h +11 -12
- nuitka/build/include/nuitka/helper/slices.h +31 -25
- nuitka/build/include/nuitka/helper/strings.h +16 -17
- nuitka/build/include/nuitka/helper/subscripts.h +18 -201
- nuitka/build/include/nuitka/helper/tuples.h +64 -52
- nuitka/build/include/nuitka/helpers.h +38 -20
- nuitka/build/include/nuitka/importing.h +28 -21
- nuitka/build/include/nuitka/jit_sources.h +25 -0
- nuitka/build/include/nuitka/prelude.h +128 -46
- nuitka/build/include/nuitka/printing.h +22 -17
- nuitka/build/include/nuitka/python_pgo.h +19 -18
- nuitka/build/include/nuitka/safe_string_ops.h +20 -18
- nuitka/build/include/nuitka/threading.h +32 -33
- nuitka/build/include/nuitka/tracing.h +28 -18
- nuitka/build/include/nuitka/type_aliases.h +27 -0
- nuitka/build/include/nuitka/unfreezing.h +29 -23
- nuitka/build/inline_copy/bin/scons.py +14 -0
- nuitka/build/inline_copy/lib/scons-4.3.0/SCons/Variables/ListVariable.py +6 -6
- nuitka/build/inline_copy/pkg_resources/pkg_resources/__init__.py +0 -3
- nuitka/build/inline_copy/python_hacl/LICENSE.txt +201 -0
- nuitka/build/inline_copy/python_hacl/hacl_312/Hacl_Hash_MD5.c +1430 -0
- nuitka/build/inline_copy/python_hacl/hacl_312/Hacl_Hash_MD5.h +66 -0
- nuitka/build/inline_copy/python_hacl/hacl_312/Hacl_Hash_SHA1.c +463 -0
- nuitka/build/inline_copy/python_hacl/hacl_312/Hacl_Hash_SHA1.h +66 -0
- nuitka/build/inline_copy/python_hacl/hacl_312/Hacl_Hash_SHA2.c +1273 -0
- nuitka/build/inline_copy/python_hacl/hacl_312/Hacl_Hash_SHA2.h +204 -0
- nuitka/build/inline_copy/python_hacl/hacl_312/Hacl_Hash_SHA3.c +734 -0
- nuitka/build/inline_copy/python_hacl/hacl_312/Hacl_Hash_SHA3.h +131 -0
- nuitka/build/inline_copy/python_hacl/hacl_312/Hacl_Streaming_Types.h +83 -0
- nuitka/build/inline_copy/python_hacl/hacl_312/include/krml/FStar_UInt128_Verified.h +346 -0
- nuitka/build/inline_copy/python_hacl/hacl_312/include/krml/FStar_UInt_8_16_32_64.h +107 -0
- nuitka/build/inline_copy/python_hacl/hacl_312/include/krml/fstar_uint128_struct_endianness.h +68 -0
- nuitka/build/inline_copy/python_hacl/hacl_312/include/krml/internal/target.h +293 -0
- nuitka/build/inline_copy/python_hacl/hacl_312/include/krml/lowstar_endianness.h +231 -0
- nuitka/build/inline_copy/python_hacl/hacl_312/include/krml/types.h +14 -0
- nuitka/build/inline_copy/python_hacl/hacl_312/internal/Hacl_Hash_MD5.h +56 -0
- nuitka/build/inline_copy/python_hacl/hacl_312/internal/Hacl_Hash_SHA1.h +56 -0
- nuitka/build/inline_copy/python_hacl/hacl_312/internal/Hacl_Hash_SHA2.h +164 -0
- nuitka/build/inline_copy/python_hacl/hacl_312/internal/Hacl_Hash_SHA3.h +65 -0
- nuitka/build/inline_copy/python_hacl/hacl_312/python_hacl_namespaces.h +89 -0
- nuitka/build/inline_copy/tqdm/tqdm/__init__.py +2 -2
- nuitka/build/inline_copy/tqdm/tqdm/_monitor.py +4 -1
- nuitka/build/inline_copy/tqdm/tqdm/utils.py +14 -8
- nuitka/build/inline_copy/tqdm/tqdm/version.py +1 -8
- nuitka/build/inline_copy/zlib/LICENSE +22 -0
- nuitka/build/inline_copy/zlib/crc32.c +1049 -0
- nuitka/build/inline_copy/zlib/crc32.h +9446 -0
- nuitka/build/inline_copy/zlib/zconf.h +551 -0
- nuitka/build/inline_copy/zlib/zlib.h +1938 -0
- nuitka/build/inline_copy/zlib/zutil.h +275 -0
- nuitka/build/static_src/CompiledAsyncgenType.c +176 -182
- nuitka/build/static_src/CompiledCellType.c +63 -40
- nuitka/build/static_src/CompiledCodeHelpers.c +181 -128
- nuitka/build/static_src/CompiledCoroutineType.c +196 -203
- nuitka/build/static_src/CompiledFrameType.c +287 -133
- nuitka/build/static_src/CompiledFunctionType.c +389 -95
- nuitka/build/static_src/CompiledGeneratorType.c +376 -252
- nuitka/build/static_src/CompiledGeneratorTypeUncompiledIntegration.c +185 -198
- nuitka/build/static_src/CompiledMethodType.c +83 -71
- nuitka/build/static_src/HelpersAllocator.c +88 -19
- nuitka/build/static_src/HelpersAttributes.c +33 -54
- nuitka/build/static_src/HelpersBuiltin.c +43 -33
- nuitka/build/static_src/HelpersBuiltinTypeMethods.c +17 -17
- nuitka/build/static_src/HelpersBytes.c +19 -20
- nuitka/build/static_src/HelpersCalling.c +33 -30
- nuitka/build/static_src/HelpersCallingGenerated.c +1000 -181
- nuitka/build/static_src/HelpersChecksumTools.c +35 -21
- nuitka/build/static_src/HelpersClasses.c +17 -17
- nuitka/build/static_src/HelpersComparisonEq.c +518 -492
- nuitka/build/static_src/HelpersComparisonEqUtils.c +21 -19
- nuitka/build/static_src/HelpersComparisonGe.c +513 -497
- nuitka/build/static_src/HelpersComparisonGt.c +512 -496
- nuitka/build/static_src/HelpersComparisonLe.c +513 -497
- nuitka/build/static_src/HelpersComparisonLt.c +512 -496
- nuitka/build/static_src/HelpersComparisonNe.c +520 -492
- nuitka/build/static_src/HelpersConsole.c +96 -0
- nuitka/build/static_src/HelpersConstantsBlob.c +542 -519
- nuitka/build/static_src/HelpersDeepcopy.c +33 -33
- nuitka/build/static_src/HelpersDictionaries.c +51 -29
- nuitka/build/static_src/HelpersDictionariesGenerated.c +177 -68
- nuitka/build/static_src/HelpersDumpBacktraces.c +63 -0
- nuitka/build/static_src/HelpersEnvironmentVariables.c +65 -0
- nuitka/build/static_src/HelpersEnvironmentVariablesSystem.c +93 -0
- nuitka/build/static_src/HelpersExceptions.c +161 -50
- nuitka/build/static_src/HelpersFiles.c +37 -17
- nuitka/build/static_src/HelpersFilesystemPaths.c +292 -181
- nuitka/build/static_src/HelpersFloats.c +37 -31
- nuitka/build/static_src/HelpersHeapStorage.c +21 -17
- nuitka/build/static_src/HelpersImport.c +48 -20
- nuitka/build/static_src/HelpersImportHard.c +53 -17
- nuitka/build/static_src/HelpersJitSources.c +46 -0
- nuitka/build/static_src/HelpersLists.c +140 -50
- nuitka/build/static_src/HelpersListsGenerated.c +41 -41
- nuitka/build/static_src/HelpersMappings.c +17 -17
- nuitka/build/static_src/HelpersMatching.c +137 -51
- nuitka/build/static_src/HelpersOperationBinaryAdd.c +173 -146
- nuitka/build/static_src/HelpersOperationBinaryAddUtils.c +99 -52
- nuitka/build/static_src/HelpersOperationBinaryBitand.c +50 -50
- nuitka/build/static_src/HelpersOperationBinaryBitor.c +50 -50
- nuitka/build/static_src/HelpersOperationBinaryBitxor.c +50 -50
- nuitka/build/static_src/HelpersOperationBinaryDivmod.c +41 -41
- nuitka/build/static_src/HelpersOperationBinaryDivmodUtils.c +17 -17
- nuitka/build/static_src/HelpersOperationBinaryFloordiv.c +41 -41
- nuitka/build/static_src/HelpersOperationBinaryInplaceAdd.c +20 -21
- nuitka/build/static_src/HelpersOperationBinaryLshift.c +47 -47
- nuitka/build/static_src/HelpersOperationBinaryMatmult.c +24 -24
- nuitka/build/static_src/HelpersOperationBinaryMod.c +107 -107
- nuitka/build/static_src/HelpersOperationBinaryMult.c +81 -75
- nuitka/build/static_src/HelpersOperationBinaryMultUtils.c +33 -30
- nuitka/build/static_src/HelpersOperationBinaryOlddiv.c +41 -41
- nuitka/build/static_src/HelpersOperationBinaryPow.c +44 -44
- nuitka/build/static_src/HelpersOperationBinaryPowUtils.c +12 -12
- nuitka/build/static_src/HelpersOperationBinaryRshift.c +47 -47
- nuitka/build/static_src/HelpersOperationBinarySub.c +80 -80
- nuitka/build/static_src/HelpersOperationBinaryTruediv.c +41 -41
- nuitka/build/static_src/HelpersOperationInplaceAdd.c +171 -153
- nuitka/build/static_src/HelpersOperationInplaceAddUtils.c +24 -22
- nuitka/build/static_src/HelpersOperationInplaceBitand.c +53 -53
- nuitka/build/static_src/HelpersOperationInplaceBitor.c +53 -53
- nuitka/build/static_src/HelpersOperationInplaceBitxor.c +53 -53
- nuitka/build/static_src/HelpersOperationInplaceFloordiv.c +62 -62
- nuitka/build/static_src/HelpersOperationInplaceLshift.c +44 -44
- nuitka/build/static_src/HelpersOperationInplaceMatmult.c +37 -37
- nuitka/build/static_src/HelpersOperationInplaceMod.c +134 -134
- nuitka/build/static_src/HelpersOperationInplaceMult.c +78 -78
- nuitka/build/static_src/HelpersOperationInplaceOlddiv.c +62 -62
- nuitka/build/static_src/HelpersOperationInplacePow.c +62 -62
- nuitka/build/static_src/HelpersOperationInplaceRshift.c +44 -44
- nuitka/build/static_src/HelpersOperationInplaceSub.c +112 -112
- nuitka/build/static_src/HelpersOperationInplaceTruediv.c +62 -62
- nuitka/build/static_src/HelpersProfiling.c +24 -23
- nuitka/build/static_src/HelpersPythonPgo.c +22 -22
- nuitka/build/static_src/HelpersRaising.c +88 -20
- nuitka/build/static_src/HelpersSafeStrings.c +34 -22
- nuitka/build/static_src/HelpersSequences.c +18 -19
- nuitka/build/static_src/HelpersSlices.c +29 -23
- nuitka/build/static_src/HelpersStrings.c +234 -37
- nuitka/build/static_src/HelpersTuples.c +46 -34
- nuitka/build/static_src/HelpersTypes.c +68 -23
- nuitka/build/static_src/InspectPatcher.c +108 -27
- nuitka/build/static_src/MainProgram.c +359 -263
- nuitka/build/static_src/MetaPathBasedLoader.c +367 -242
- nuitka/build/static_src/MetaPathBasedLoaderImportlibMetadataDistribution.c +39 -26
- nuitka/build/static_src/MetaPathBasedLoaderResourceReader.c +17 -18
- nuitka/build/static_src/MetaPathBasedLoaderResourceReaderFiles.c +97 -22
- nuitka/build/static_src/OnefileBootstrap.c +276 -164
- nuitka/build/static_src/OnefileSplashScreen.cpp +51 -27
- nuitka/code_generation/AsyncgenCodes.py +19 -17
- nuitka/code_generation/AttributeCodes.py +31 -27
- nuitka/code_generation/BinaryOperationHelperDefinitions.py +24 -20
- nuitka/code_generation/BranchCodes.py +19 -17
- nuitka/code_generation/BuiltinCodes.py +20 -17
- nuitka/code_generation/CallCodes.py +19 -17
- nuitka/code_generation/ClassCodes.py +19 -17
- nuitka/code_generation/CodeGeneration.py +48 -27
- nuitka/code_generation/CodeHelperSelection.py +19 -17
- nuitka/code_generation/CodeHelpers.py +24 -20
- nuitka/code_generation/CodeObjectCodes.py +34 -24
- nuitka/code_generation/ComparisonCodes.py +38 -20
- nuitka/code_generation/ComparisonHelperDefinitions.py +19 -17
- nuitka/code_generation/ConditionalCodes.py +19 -17
- nuitka/code_generation/ConstantCodes.py +82 -28
- nuitka/code_generation/Contexts.py +152 -26
- nuitka/code_generation/CoroutineCodes.py +19 -17
- nuitka/code_generation/CtypesCodes.py +19 -17
- nuitka/code_generation/DictCodes.py +25 -23
- nuitka/code_generation/Emission.py +21 -18
- nuitka/code_generation/ErrorCodes.py +27 -33
- nuitka/code_generation/EvalCodes.py +24 -20
- nuitka/code_generation/ExceptionCodes.py +27 -18
- nuitka/code_generation/ExpressionCTypeSelectionHelpers.py +20 -17
- nuitka/code_generation/ExpressionCodes.py +19 -17
- nuitka/code_generation/FrameCodes.py +24 -20
- nuitka/code_generation/FunctionCodes.py +24 -21
- nuitka/code_generation/GeneratorCodes.py +23 -20
- nuitka/code_generation/GlobalConstants.py +43 -23
- nuitka/code_generation/GlobalsLocalsCodes.py +21 -19
- nuitka/code_generation/IdCodes.py +19 -17
- nuitka/code_generation/ImportCodes.py +90 -50
- nuitka/code_generation/Indentation.py +23 -22
- nuitka/code_generation/IndexCodes.py +19 -17
- nuitka/code_generation/InjectCCodes.py +14 -12
- nuitka/code_generation/IntegerCodes.py +19 -17
- nuitka/code_generation/IteratorCodes.py +19 -17
- nuitka/code_generation/JitCodes.py +44 -0
- nuitka/code_generation/LabelCodes.py +19 -17
- nuitka/code_generation/LineNumberCodes.py +19 -17
- nuitka/code_generation/ListCodes.py +32 -36
- nuitka/code_generation/LoaderCodes.py +22 -17
- nuitka/code_generation/LocalsDictCodes.py +56 -32
- nuitka/code_generation/LoopCodes.py +19 -17
- nuitka/code_generation/MatchCodes.py +42 -22
- nuitka/code_generation/ModuleCodes.py +43 -25
- nuitka/code_generation/Namify.py +27 -23
- nuitka/code_generation/NetworkxCodes.py +51 -0
- nuitka/code_generation/OperationCodes.py +29 -31
- nuitka/code_generation/PackageResourceCodes.py +59 -23
- nuitka/code_generation/PrintCodes.py +19 -17
- nuitka/code_generation/PythonAPICodes.py +19 -17
- nuitka/code_generation/RaisingCodes.py +19 -17
- nuitka/code_generation/Reports.py +19 -17
- nuitka/code_generation/ReturnCodes.py +19 -17
- nuitka/code_generation/SetCodes.py +19 -17
- nuitka/code_generation/SliceCodes.py +22 -20
- nuitka/code_generation/StringCodes.py +19 -17
- nuitka/code_generation/SubscriptCodes.py +24 -30
- nuitka/code_generation/TensorflowCodes.py +54 -0
- nuitka/code_generation/TryCodes.py +19 -17
- nuitka/code_generation/TupleCodes.py +20 -18
- nuitka/code_generation/TypeAliasCodes.py +71 -0
- nuitka/code_generation/VariableCodes.py +26 -22
- nuitka/code_generation/VariableDeclarations.py +20 -17
- nuitka/code_generation/YieldCodes.py +22 -20
- nuitka/code_generation/__init__.py +5 -4
- nuitka/code_generation/c_types/CTypeBases.py +19 -17
- nuitka/code_generation/c_types/CTypeBooleans.py +19 -17
- nuitka/code_generation/c_types/CTypeCFloats.py +19 -17
- nuitka/code_generation/c_types/CTypeCLongs.py +19 -18
- nuitka/code_generation/c_types/CTypeModuleDictVariables.py +19 -17
- nuitka/code_generation/c_types/CTypeNuitkaBooleans.py +19 -17
- nuitka/code_generation/c_types/CTypeNuitkaInts.py +19 -18
- nuitka/code_generation/c_types/CTypeNuitkaVoids.py +19 -17
- nuitka/code_generation/c_types/CTypePyObjectPointers.py +27 -25
- nuitka/code_generation/c_types/CTypeVoids.py +20 -17
- nuitka/code_generation/c_types/__init__.py +5 -4
- nuitka/code_generation/templates/CodeTemplatesAsyncgens.py +18 -17
- nuitka/code_generation/templates/CodeTemplatesConstants.py +132 -36
- nuitka/code_generation/templates/CodeTemplatesCoroutines.py +18 -17
- nuitka/code_generation/templates/CodeTemplatesExceptions.py +19 -18
- nuitka/code_generation/templates/CodeTemplatesFrames.py +18 -17
- nuitka/code_generation/templates/CodeTemplatesFunction.py +18 -17
- nuitka/code_generation/templates/CodeTemplatesGeneratorFunction.py +19 -17
- nuitka/code_generation/templates/CodeTemplatesIterators.py +18 -18
- nuitka/code_generation/templates/CodeTemplatesLoader.py +25 -19
- nuitka/code_generation/templates/CodeTemplatesModules.py +244 -165
- nuitka/code_generation/templates/CodeTemplatesVariables.py +42 -27
- nuitka/code_generation/templates/TemplateDebugWrapper.py +19 -18
- nuitka/code_generation/templates/__init__.py +5 -4
- nuitka/code_generation/templates_c/CodeTemplateCallsMethodPositional.c.j2 +19 -19
- nuitka/code_generation/templates_c/CodeTemplateCallsMixed.c.j2 +18 -18
- nuitka/code_generation/templates_c/CodeTemplateCallsPositional.c.j2 +76 -25
- nuitka/code_generation/templates_c/CodeTemplateCallsPositionalMethodDescr.c.j2 +22 -22
- nuitka/code_generation/templates_c/CodeTemplateMakeListHinted.c.j2 +19 -19
- nuitka/code_generation/templates_c/CodeTemplateMakeListSmall.c.j2 +19 -19
- nuitka/code_generation/templates_c/HelperBuiltinMethodOperation.c.j2 +17 -17
- nuitka/code_generation/templates_c/HelperDictionaryCopy.c.j2 +121 -48
- nuitka/code_generation/templates_c/HelperImportHard.c.j2 +18 -18
- nuitka/code_generation/templates_c/HelperLongTools.c.j2 +18 -18
- nuitka/code_generation/templates_c/HelperObjectTools.c.j2 +6 -6
- nuitka/code_generation/templates_c/HelperOperationBinary.c.j2 +23 -23
- nuitka/code_generation/templates_c/HelperOperationComparison.c.j2 +35 -35
- nuitka/code_generation/templates_c/HelperOperationComparisonBytes.c.j2 +28 -28
- nuitka/code_generation/templates_c/HelperOperationComparisonFloat.c.j2 +17 -17
- nuitka/code_generation/templates_c/HelperOperationComparisonInt.c.j2 +18 -18
- nuitka/code_generation/templates_c/HelperOperationComparisonList.c.j2 +44 -32
- nuitka/code_generation/templates_c/HelperOperationComparisonLong.c.j2 +20 -20
- nuitka/code_generation/templates_c/HelperOperationComparisonStr.c.j2 +28 -28
- nuitka/code_generation/templates_c/HelperOperationComparisonTuple.c.j2 +24 -24
- nuitka/code_generation/templates_c/HelperOperationComparisonUnicode.c.j2 +33 -29
- nuitka/code_generation/templates_c/HelperOperationInplace.c.j2 +20 -20
- nuitka/code_generation/templates_c/HelperSlotsBinary.c.j2 +27 -27
- nuitka/code_generation/templates_c/HelperSlotsBytes.c.j2 +17 -17
- nuitka/code_generation/templates_c/HelperSlotsCommon.c.j2 +17 -17
- nuitka/code_generation/templates_c/HelperSlotsFloat.c.j2 +17 -17
- nuitka/code_generation/templates_c/HelperSlotsInt.c.j2 +17 -17
- nuitka/code_generation/templates_c/HelperSlotsList.c.j2 +21 -18
- nuitka/code_generation/templates_c/HelperSlotsLong.c.j2 +26 -24
- nuitka/code_generation/templates_c/HelperSlotsSet.c.j2 +17 -17
- nuitka/code_generation/templates_c/HelperSlotsStr.c.j2 +17 -17
- nuitka/code_generation/templates_c/HelperSlotsTuple.c.j2 +21 -18
- nuitka/code_generation/templates_c/HelperSlotsUnicode.c.j2 +17 -17
- nuitka/containers/Namedtuples.py +19 -18
- nuitka/containers/OrderedSetsFallback.py +19 -17
- nuitka/containers/__init__.py +5 -4
- nuitka/distutils/Build.py +19 -18
- nuitka/distutils/DistutilCommands.py +34 -23
- nuitka/distutils/__init__.py +5 -4
- nuitka/finalizations/Finalization.py +20 -17
- nuitka/finalizations/FinalizeMarkups.py +21 -41
- nuitka/finalizations/__init__.py +5 -4
- nuitka/freezer/DependsExe.py +48 -28
- nuitka/freezer/DllDependenciesCommon.py +47 -20
- nuitka/freezer/DllDependenciesMacOS.py +147 -57
- nuitka/freezer/DllDependenciesPosix.py +29 -19
- nuitka/freezer/DllDependenciesWin32.py +29 -21
- nuitka/freezer/ImportDetection.py +20 -17
- nuitka/freezer/IncludedDataFiles.py +118 -47
- nuitka/freezer/IncludedEntryPoints.py +102 -38
- nuitka/freezer/Onefile.py +32 -22
- nuitka/freezer/Standalone.py +105 -50
- nuitka/freezer/__init__.py +5 -4
- nuitka/importing/IgnoreListing.py +19 -17
- nuitka/importing/ImportCache.py +24 -21
- nuitka/importing/ImportResolving.py +103 -95
- nuitka/importing/Importing.py +286 -92
- nuitka/importing/PreloadedPackages.py +21 -18
- nuitka/importing/Recursion.py +131 -47
- nuitka/importing/StandardLibrary.py +46 -28
- nuitka/importing/__init__.py +5 -4
- nuitka/nodes/AsyncgenNodes.py +19 -17
- nuitka/nodes/AttributeLookupNodes.py +19 -17
- nuitka/nodes/AttributeNodes.py +19 -17
- nuitka/nodes/AttributeNodesGenerated.py +49 -24
- nuitka/nodes/BuiltinAllNodes.py +19 -17
- nuitka/nodes/BuiltinAnyNodes.py +19 -17
- nuitka/nodes/BuiltinComplexNodes.py +20 -17
- nuitka/nodes/BuiltinDecodingNodes.py +19 -17
- nuitka/nodes/BuiltinDecoratorNodes.py +19 -17
- nuitka/nodes/BuiltinDictNodes.py +19 -17
- nuitka/nodes/BuiltinFormatNodes.py +20 -17
- nuitka/nodes/BuiltinHashNodes.py +19 -17
- nuitka/nodes/BuiltinInputNodes.py +19 -17
- nuitka/nodes/BuiltinIntegerNodes.py +19 -17
- nuitka/nodes/BuiltinIteratorNodes.py +24 -20
- nuitka/nodes/BuiltinLenNodes.py +19 -17
- nuitka/nodes/BuiltinNextNodes.py +19 -17
- nuitka/nodes/BuiltinOpenNodes.py +52 -18
- nuitka/nodes/BuiltinOperationNodeBasesGenerated.py +40 -23
- nuitka/nodes/BuiltinRangeNodes.py +21 -19
- nuitka/nodes/BuiltinRefNodes.py +68 -19
- nuitka/nodes/BuiltinSumNodes.py +20 -18
- nuitka/nodes/BuiltinTypeNodes.py +19 -17
- nuitka/nodes/BuiltinVarsNodes.py +19 -18
- nuitka/nodes/BytesNodes.py +19 -17
- nuitka/nodes/CallNodes.py +19 -17
- nuitka/nodes/Checkers.py +19 -17
- nuitka/nodes/ChildrenHavingMixins.py +1250 -302
- nuitka/nodes/ClassNodes.py +49 -29
- nuitka/nodes/CodeObjectSpecs.py +29 -18
- nuitka/nodes/ComparisonNodes.py +19 -17
- nuitka/nodes/ConditionalNodes.py +21 -23
- nuitka/nodes/ConstantRefNodes.py +57 -17
- nuitka/nodes/ContainerMakingNodes.py +19 -17
- nuitka/nodes/ContainerOperationNodes.py +19 -17
- nuitka/nodes/CoroutineNodes.py +19 -17
- nuitka/nodes/CtypesNodes.py +19 -18
- nuitka/nodes/DictionaryNodes.py +19 -18
- nuitka/nodes/ExceptionNodes.py +29 -17
- nuitka/nodes/ExecEvalNodes.py +19 -17
- nuitka/nodes/ExpressionBases.py +34 -26
- nuitka/nodes/ExpressionBasesGenerated.py +54 -32
- nuitka/nodes/ExpressionShapeMixins.py +19 -17
- nuitka/nodes/FrameNodes.py +19 -17
- nuitka/nodes/FunctionAttributeNodes.py +19 -17
- nuitka/nodes/FunctionNodes.py +81 -35
- nuitka/nodes/FutureSpecs.py +35 -20
- nuitka/nodes/GeneratorNodes.py +21 -19
- nuitka/nodes/GlobalsLocalsNodes.py +22 -17
- nuitka/nodes/HardImportNodesGenerated.py +545 -129
- nuitka/nodes/ImportHardNodes.py +46 -38
- nuitka/nodes/ImportNodes.py +436 -446
- nuitka/nodes/IndicatorMixins.py +19 -17
- nuitka/nodes/InjectCNodes.py +19 -18
- nuitka/nodes/IterationHandles.py +55 -34
- nuitka/nodes/KeyValuePairNodes.py +19 -17
- nuitka/nodes/ListOperationNodes.py +33 -21
- nuitka/nodes/LocalsDictNodes.py +19 -17
- nuitka/nodes/LocalsScopes.py +41 -41
- nuitka/nodes/LoopNodes.py +28 -17
- nuitka/nodes/MatchNodes.py +37 -24
- nuitka/nodes/ModuleAttributeNodes.py +18 -35
- nuitka/nodes/ModuleNodes.py +90 -31
- nuitka/nodes/NetworkxNodes.py +45 -0
- nuitka/nodes/NodeBases.py +45 -43
- nuitka/nodes/NodeMakingHelpers.py +21 -19
- nuitka/nodes/NodeMetaClasses.py +45 -28
- nuitka/nodes/OperatorNodes.py +28 -26
- nuitka/nodes/OperatorNodesUnary.py +20 -17
- nuitka/nodes/OsSysNodes.py +66 -18
- nuitka/nodes/OutlineNodes.py +22 -20
- nuitka/nodes/PackageMetadataNodes.py +37 -27
- nuitka/nodes/PackageResourceNodes.py +29 -23
- nuitka/nodes/PrintNodes.py +19 -17
- nuitka/nodes/ReturnNodes.py +20 -18
- nuitka/nodes/SideEffectNodes.py +19 -17
- nuitka/nodes/SliceNodes.py +20 -18
- nuitka/nodes/StatementBasesGenerated.py +125 -77
- nuitka/nodes/StatementNodes.py +19 -17
- nuitka/nodes/StrNodes.py +19 -17
- nuitka/nodes/StringConcatenationNodes.py +20 -17
- nuitka/nodes/SubscriptNodes.py +26 -24
- nuitka/nodes/TensorflowNodes.py +38 -0
- nuitka/nodes/TryNodes.py +19 -17
- nuitka/nodes/TypeMatchNodes.py +19 -17
- nuitka/nodes/TypeNodes.py +40 -17
- nuitka/nodes/VariableAssignNodes.py +122 -64
- nuitka/nodes/VariableDelNodes.py +19 -17
- nuitka/nodes/VariableNameNodes.py +19 -17
- nuitka/nodes/VariableRefNodes.py +63 -26
- nuitka/nodes/VariableReleaseNodes.py +19 -17
- nuitka/nodes/YieldNodes.py +21 -19
- nuitka/nodes/__init__.py +5 -4
- nuitka/nodes/shapes/BuiltinTypeShapes.py +145 -39
- nuitka/nodes/shapes/ControlFlowDescriptions.py +19 -17
- nuitka/nodes/shapes/ShapeMixins.py +40 -17
- nuitka/nodes/shapes/StandardShapes.py +27 -20
- nuitka/nodes/shapes/__init__.py +5 -4
- nuitka/optimizations/BytecodeDemotion.py +19 -17
- nuitka/optimizations/FunctionInlining.py +22 -23
- nuitka/optimizations/Graphs.py +19 -17
- nuitka/optimizations/Optimization.py +39 -35
- nuitka/optimizations/OptimizeBuiltinCalls.py +31 -27
- nuitka/optimizations/Tags.py +19 -18
- nuitka/optimizations/TraceCollections.py +67 -24
- nuitka/optimizations/ValueTraces.py +92 -25
- nuitka/optimizations/__init__.py +5 -4
- nuitka/pgo/PGO.py +33 -23
- nuitka/pgo/__init__.py +5 -4
- nuitka/plugins/PluginBase.py +610 -109
- nuitka/plugins/Plugins.py +241 -58
- nuitka/plugins/YamlPluginBase.py +121 -0
- nuitka/plugins/__init__.py +5 -4
- nuitka/plugins/standard/AntiBloatPlugin.py +357 -129
- nuitka/plugins/standard/ConsiderPyLintAnnotationsPlugin.py +20 -19
- nuitka/plugins/standard/DataFilesPlugin.py +65 -29
- nuitka/plugins/standard/DelvewheelPlugin.py +32 -24
- nuitka/plugins/standard/DillPlugin/DillPlugin.c +37 -0
- nuitka/plugins/standard/DillPlugin/dill-postLoad.py +256 -0
- nuitka/plugins/standard/DillPlugin.py +42 -134
- nuitka/plugins/standard/DllFilesPlugin.py +125 -42
- nuitka/plugins/standard/EnumPlugin.py +19 -17
- nuitka/plugins/standard/EventletPlugin.py +19 -17
- nuitka/plugins/standard/GeventPlugin.py +19 -17
- nuitka/plugins/standard/GiPlugin.py +44 -28
- nuitka/plugins/standard/GlfwPlugin.py +20 -17
- nuitka/plugins/standard/ImplicitImports.py +407 -46
- nuitka/plugins/standard/KivyPlugin.py +30 -17
- nuitka/plugins/standard/MatplotlibPlugin.py +88 -42
- nuitka/plugins/standard/MultiprocessingPlugin.py +25 -20
- nuitka/plugins/standard/NumpyPlugin.py +19 -17
- nuitka/plugins/standard/OptionsNannyPlugin.py +48 -76
- nuitka/plugins/standard/PbrPlugin.py +21 -19
- nuitka/plugins/standard/PkgResourcesPlugin.py +34 -23
- nuitka/plugins/standard/PmwPlugin.py +30 -27
- nuitka/plugins/standard/PySidePyQtPlugin.py +74 -80
- nuitka/plugins/standard/PywebViewPlugin.py +19 -17
- nuitka/plugins/standard/SpacyPlugin.py +136 -0
- nuitka/plugins/standard/TensorflowPlugin.py +20 -17
- nuitka/plugins/standard/TkinterPlugin.py +103 -53
- nuitka/plugins/standard/TorchPlugin.py +20 -17
- nuitka/plugins/standard/TransformersPlugin.py +94 -30
- nuitka/plugins/standard/TrioPlugin.py +18 -15
- nuitka/plugins/standard/UpxPlugin.py +21 -19
- nuitka/plugins/standard/__init__.py +5 -4
- nuitka/plugins/standard/standard.nuitka-package.config.yml +3449 -1299
- nuitka/plugins/standard/stdlib2.nuitka-package.config.yml +14 -14
- nuitka/plugins/standard/stdlib3.nuitka-package.config.yml +121 -66
- nuitka/reports/CompilationReportReader.py +67 -0
- nuitka/reports/LicenseReport.rst.j2 +21 -21
- nuitka/reports/Reports.py +352 -76
- nuitka/reports/__init__.py +5 -4
- nuitka/specs/BuiltinBytesOperationSpecs.py +18 -17
- nuitka/specs/BuiltinDictOperationSpecs.py +18 -17
- nuitka/specs/BuiltinListOperationSpecs.py +18 -17
- nuitka/specs/BuiltinParameterSpecs.py +30 -20
- nuitka/specs/BuiltinStrOperationSpecs.py +19 -18
- nuitka/specs/BuiltinTypeOperationSpecs.py +18 -18
- nuitka/specs/BuiltinUnicodeOperationSpecs.py +18 -17
- nuitka/specs/HardImportSpecs.py +67 -22
- nuitka/specs/ParameterSpecs.py +56 -41
- nuitka/specs/__init__.py +5 -4
- nuitka/tools/Basics.py +20 -18
- nuitka/tools/__init__.py +5 -4
- nuitka/tools/commercial/__init__.py +7 -6
- nuitka/tools/data_composer/DataComposer.py +78 -62
- nuitka/tools/data_composer/__init__.py +5 -4
- nuitka/tools/data_composer/__main__.py +18 -17
- nuitka/tools/environments/CreateEnvironment.py +20 -17
- nuitka/tools/environments/Virtualenv.py +60 -32
- nuitka/tools/environments/__init__.py +5 -4
- nuitka/tools/general/__init__.py +5 -4
- nuitka/tools/general/dll_report/__init__.py +5 -4
- nuitka/tools/general/dll_report/__main__.py +19 -21
- nuitka/tools/general/find_module/FindModuleCode.py +35 -22
- nuitka/tools/general/find_module/__init__.py +5 -4
- nuitka/tools/onefile_compressor/OnefileCompressor.py +213 -131
- nuitka/tools/onefile_compressor/__init__.py +5 -4
- nuitka/tools/onefile_compressor/__main__.py +18 -17
- nuitka/tools/podman/Podman.py +19 -17
- nuitka/tools/podman/__init__.py +5 -4
- nuitka/tools/podman/__main__.py +35 -19
- nuitka/tools/profiler/__init__.py +5 -4
- nuitka/tools/profiler/__main__.py +18 -17
- nuitka/tools/scanning/DisplayPackageDLLs.py +47 -22
- nuitka/tools/scanning/DisplayPackageData.py +31 -19
- nuitka/tools/scanning/__init__.py +5 -4
- nuitka/tools/specialize/CTypeDescriptions.py +93 -71
- nuitka/tools/specialize/Common.py +18 -17
- nuitka/tools/specialize/SpecializeC.py +31 -27
- nuitka/tools/specialize/SpecializePython.py +108 -45
- nuitka/tools/specialize/__init__.py +5 -4
- nuitka/tools/testing/Common.py +106 -52
- nuitka/tools/testing/Constructs.py +19 -17
- nuitka/tools/testing/OutputComparison.py +54 -18
- nuitka/tools/testing/Pythons.py +19 -18
- nuitka/tools/testing/RuntimeTracing.py +20 -19
- nuitka/tools/testing/SearchModes.py +26 -20
- nuitka/tools/testing/Valgrind.py +19 -17
- nuitka/tools/testing/__init__.py +5 -4
- nuitka/tools/testing/check_reference_counts/__init__.py +5 -4
- nuitka/tools/testing/check_reference_counts/__main__.py +18 -18
- nuitka/tools/testing/compare_with_cpython/__init__.py +5 -4
- nuitka/tools/testing/compare_with_cpython/__main__.py +36 -29
- nuitka/tools/testing/find_sxs_modules/__init__.py +5 -4
- nuitka/tools/testing/find_sxs_modules/__main__.py +17 -17
- nuitka/tools/testing/measure_construct_performance/__init__.py +5 -4
- nuitka/tools/testing/measure_construct_performance/__main__.py +22 -25
- nuitka/tools/testing/run_nuitka_tests/__init__.py +5 -4
- nuitka/tools/testing/run_nuitka_tests/__main__.py +57 -40
- nuitka/tools/watch/AutoStage.py +144 -0
- nuitka/tools/watch/GitHub.py +113 -0
- nuitka/tools/watch/__init__.py +5 -4
- nuitka/tools/watch/__main__.py +322 -91
- nuitka/tree/Building.py +176 -147
- nuitka/tree/ComplexCallHelperFunctions.py +80 -58
- nuitka/tree/Extractions.py +19 -17
- nuitka/tree/InternalModule.py +29 -20
- nuitka/tree/Operations.py +19 -17
- nuitka/tree/ReformulationAssertStatements.py +20 -17
- nuitka/tree/ReformulationAssignmentStatements.py +92 -91
- nuitka/tree/ReformulationBooleanExpressions.py +19 -17
- nuitka/tree/ReformulationCallExpressions.py +20 -18
- nuitka/tree/ReformulationClasses.py +45 -39
- nuitka/tree/ReformulationClasses3.py +146 -98
- nuitka/tree/ReformulationComparisonExpressions.py +29 -35
- nuitka/tree/ReformulationContractionExpressions.py +58 -55
- nuitka/tree/ReformulationDictionaryCreation.py +40 -35
- nuitka/tree/ReformulationExecStatements.py +42 -39
- nuitka/tree/ReformulationForLoopStatements.py +30 -34
- nuitka/tree/ReformulationFunctionStatements.py +58 -54
- nuitka/tree/ReformulationImportStatements.py +34 -29
- nuitka/tree/ReformulationLambdaExpressions.py +23 -24
- nuitka/tree/ReformulationMatchStatements.py +244 -92
- nuitka/tree/ReformulationMultidist.py +22 -18
- nuitka/tree/ReformulationNamespacePackages.py +55 -46
- nuitka/tree/ReformulationPrintStatements.py +23 -24
- nuitka/tree/ReformulationSequenceCreation.py +50 -49
- nuitka/tree/ReformulationSubscriptExpressions.py +19 -17
- nuitka/tree/ReformulationTryExceptStatements.py +19 -17
- nuitka/tree/ReformulationTryFinallyStatements.py +34 -17
- nuitka/tree/ReformulationWhileLoopStatements.py +19 -17
- nuitka/tree/ReformulationWithStatements.py +39 -41
- nuitka/tree/ReformulationYieldExpressions.py +21 -19
- nuitka/tree/SourceHandling.py +76 -31
- nuitka/tree/SyntaxErrors.py +19 -17
- nuitka/tree/TreeHelpers.py +33 -20
- nuitka/tree/VariableClosure.py +35 -39
- nuitka/tree/__init__.py +5 -4
- nuitka/utils/AppDirs.py +41 -20
- nuitka/utils/CStrings.py +66 -21
- nuitka/utils/CommandLineOptions.py +84 -19
- nuitka/utils/Distributions.py +445 -54
- nuitka/utils/Download.py +89 -57
- nuitka/utils/Execution.py +73 -34
- nuitka/utils/FileOperations.py +318 -74
- nuitka/utils/Hashing.py +55 -33
- nuitka/utils/Images.py +26 -19
- nuitka/utils/Importing.py +118 -24
- nuitka/utils/InstalledPythons.py +80 -75
- nuitka/utils/InstanceCounters.py +20 -17
- nuitka/utils/Jinja2.py +30 -22
- nuitka/utils/Json.py +19 -17
- nuitka/utils/MacOSApp.py +26 -18
- nuitka/utils/MemoryUsage.py +20 -18
- nuitka/utils/ModuleNames.py +42 -26
- nuitka/utils/ReExecute.py +50 -28
- nuitka/utils/Rest.py +20 -17
- nuitka/utils/SharedLibraries.py +161 -75
- nuitka/utils/Shebang.py +20 -17
- nuitka/utils/Signing.py +63 -18
- nuitka/utils/SlotMetaClasses.py +57 -0
- nuitka/utils/StaticLibraries.py +83 -56
- nuitka/utils/ThreadedExecutor.py +18 -17
- nuitka/utils/Timing.py +22 -20
- nuitka/utils/Utils.py +115 -25
- nuitka/utils/WindowsFileUsage.py +22 -20
- nuitka/utils/WindowsResources.py +25 -18
- nuitka/utils/Yaml.py +62 -24
- nuitka/utils/__init__.py +5 -4
- Nuitka_winsvc-1.8.dist-info/RECORD +0 -905
- nuitka/build/inline_copy/tqdm/tqdm/_tqdm_gui.py +0 -9
- nuitka/build/inline_copy/tqdm/tqdm/gui.py +0 -191
- {Nuitka_winsvc-1.8.dist-info → Nuitka_winsvc-2.4.8.dist-info}/LICENSE.txt +0 -0
- {Nuitka_winsvc-1.8.dist-info → Nuitka_winsvc-2.4.8.dist-info}/entry_points.txt +0 -0
- {Nuitka_winsvc-1.8.dist-info → Nuitka_winsvc-2.4.8.dist-info}/top_level.txt +0 -0
|
@@ -1,33 +1,34 @@
|
|
|
1
|
-
# Copyright
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
# integrates with CPython, but also works on its own.
|
|
5
|
-
#
|
|
6
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
-
# you may not use this file except in compliance with the License.
|
|
8
|
-
# You may obtain a copy of the License at
|
|
9
|
-
#
|
|
10
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
-
#
|
|
12
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
13
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
-
# See the License for the specific language governing permissions and
|
|
16
|
-
# limitations under the License.
|
|
17
|
-
#
|
|
1
|
+
# Copyright 2024, Kay Hayen, mailto:kay.hayen@gmail.com find license text at end of file
|
|
2
|
+
|
|
3
|
+
|
|
18
4
|
# We are not avoiding these in generated code at all
|
|
19
|
-
# pylint: disable=I0021,too-many-lines
|
|
20
|
-
# pylint: disable=I0021,
|
|
21
|
-
# pylint: disable=I0021,too-many-instance-attributes
|
|
22
|
-
# pylint: disable=I0021,too-many-return-statements
|
|
5
|
+
# pylint: disable=I0021,line-too-long,too-many-instance-attributes,too-many-lines
|
|
6
|
+
# pylint: disable=I0021,too-many-arguments,too-many-return-statements,too-many-statements
|
|
23
7
|
|
|
24
8
|
|
|
25
9
|
"""Children having mixins
|
|
26
10
|
|
|
27
11
|
WARNING, this code is GENERATED. Modify the template ChildrenHavingMixin.py.j2 instead!
|
|
28
12
|
|
|
29
|
-
spell-checker: ignore append capitalize casefold center
|
|
30
|
-
spell-checker: ignore
|
|
13
|
+
spell-checker: ignore __prepare__ append args autograph capitalize casefold center chars
|
|
14
|
+
spell-checker: ignore clear copy count decode default delete dist distribution_name encode
|
|
15
|
+
spell-checker: ignore encoding end endswith errors exit_code expandtabs
|
|
16
|
+
spell-checker: ignore experimental_attributes experimental_autograph_options
|
|
17
|
+
spell-checker: ignore experimental_compile experimental_follow_type_hints
|
|
18
|
+
spell-checker: ignore experimental_implements experimental_relax_shapes extend fillchar
|
|
19
|
+
spell-checker: ignore find format format_map formatmap fromkeys func get group handle
|
|
20
|
+
spell-checker: ignore has_key haskey index input_signature insert isalnum isalpha isascii
|
|
21
|
+
spell-checker: ignore isdecimal isdigit isidentifier islower isnumeric isprintable isspace
|
|
22
|
+
spell-checker: ignore istitle isupper item items iterable iteritems iterkeys itervalues
|
|
23
|
+
spell-checker: ignore jit_compile join keepends key keys kwargs ljust lower lstrip
|
|
24
|
+
spell-checker: ignore maketrans maxsplit mode name new old p package
|
|
25
|
+
spell-checker: ignore package_or_requirement pairs partition path pop popitem prefix
|
|
26
|
+
spell-checker: ignore prepare reduce_retracing remove replace resource resource_name
|
|
27
|
+
spell-checker: ignore reverse rfind rindex rjust rpartition rsplit rstrip s sep setdefault
|
|
28
|
+
spell-checker: ignore sort split splitlines start startswith stop strip sub suffix
|
|
29
|
+
spell-checker: ignore swapcase table tabsize title translate update upper use_errno
|
|
30
|
+
spell-checker: ignore use_last_error value values viewitems viewkeys viewvalues width
|
|
31
|
+
spell-checker: ignore winmode zfill
|
|
31
32
|
"""
|
|
32
33
|
|
|
33
34
|
|
|
@@ -47,6 +48,7 @@ class ModuleChildrenHavingBodyOptionalStatementsOrNoneFunctionsTupleMixin(object
|
|
|
47
48
|
|
|
48
49
|
# This is generated for use in
|
|
49
50
|
# CompiledPythonModule
|
|
51
|
+
# CompiledPythonNamespacePackage
|
|
50
52
|
# CompiledPythonPackage
|
|
51
53
|
# PythonMainModule
|
|
52
54
|
|
|
@@ -141,9 +143,9 @@ class ModuleChildrenHavingBodyOptionalStatementsOrNoneFunctionsTupleMixin(object
|
|
|
141
143
|
"""
|
|
142
144
|
|
|
143
145
|
values = {
|
|
144
|
-
"body":
|
|
145
|
-
|
|
146
|
-
|
|
146
|
+
"body": (
|
|
147
|
+
self.subnode_body.makeClone() if self.subnode_body is not None else None
|
|
148
|
+
),
|
|
147
149
|
"functions": tuple(v.makeClone() for v in self.subnode_functions),
|
|
148
150
|
}
|
|
149
151
|
|
|
@@ -176,6 +178,9 @@ class ModuleChildrenHavingBodyOptionalStatementsOrNoneFunctionsTupleMixin(object
|
|
|
176
178
|
ChildrenCompiledPythonModuleMixin = (
|
|
177
179
|
ModuleChildrenHavingBodyOptionalStatementsOrNoneFunctionsTupleMixin
|
|
178
180
|
)
|
|
181
|
+
ChildrenCompiledPythonNamespacePackageMixin = (
|
|
182
|
+
ModuleChildrenHavingBodyOptionalStatementsOrNoneFunctionsTupleMixin
|
|
183
|
+
)
|
|
179
184
|
ChildrenCompiledPythonPackageMixin = (
|
|
180
185
|
ModuleChildrenHavingBodyOptionalStatementsOrNoneFunctionsTupleMixin
|
|
181
186
|
)
|
|
@@ -281,8 +286,9 @@ class ChildHavingBodyOptionalMixin(object):
|
|
|
281
286
|
|
|
282
287
|
# This is generated for use in
|
|
283
288
|
# ExpressionAsyncgenObjectBody
|
|
284
|
-
#
|
|
285
|
-
#
|
|
289
|
+
# ExpressionClassDictBody
|
|
290
|
+
# ExpressionClassDictBodyP2
|
|
291
|
+
# ExpressionClassMappingBody
|
|
286
292
|
# ExpressionCoroutineObjectBody
|
|
287
293
|
# ExpressionFunctionBody
|
|
288
294
|
# ExpressionFunctionPureBody
|
|
@@ -343,9 +349,9 @@ class ChildHavingBodyOptionalMixin(object):
|
|
|
343
349
|
"""
|
|
344
350
|
|
|
345
351
|
values = {
|
|
346
|
-
"body":
|
|
347
|
-
|
|
348
|
-
|
|
352
|
+
"body": (
|
|
353
|
+
self.subnode_body.makeClone() if self.subnode_body is not None else None
|
|
354
|
+
),
|
|
349
355
|
}
|
|
350
356
|
|
|
351
357
|
values.update(self.getDetails())
|
|
@@ -395,8 +401,9 @@ class ChildHavingBodyOptionalMixin(object):
|
|
|
395
401
|
|
|
396
402
|
# Assign the names that are easier to import with a stable name.
|
|
397
403
|
ChildrenExpressionAsyncgenObjectBodyMixin = ChildHavingBodyOptionalMixin
|
|
398
|
-
|
|
399
|
-
|
|
404
|
+
ChildrenExpressionClassDictBodyMixin = ChildHavingBodyOptionalMixin
|
|
405
|
+
ChildrenExpressionClassDictBodyP2Mixin = ChildHavingBodyOptionalMixin
|
|
406
|
+
ChildrenExpressionClassMappingBodyMixin = ChildHavingBodyOptionalMixin
|
|
400
407
|
ChildrenExpressionCoroutineObjectBodyMixin = ChildHavingBodyOptionalMixin
|
|
401
408
|
ChildrenExpressionFunctionBodyMixin = ChildHavingBodyOptionalMixin
|
|
402
409
|
ChildrenExpressionFunctionPureBodyMixin = ChildHavingBodyOptionalMixin
|
|
@@ -4828,12 +4835,16 @@ class ChildrenHavingDefaultsTupleKwDefaultsOptionalAnnotationsOptionalFunctionRe
|
|
|
4828
4835
|
|
|
4829
4836
|
values = {
|
|
4830
4837
|
"defaults": tuple(v.makeClone() for v in self.subnode_defaults),
|
|
4831
|
-
"kw_defaults":
|
|
4832
|
-
|
|
4833
|
-
|
|
4834
|
-
|
|
4835
|
-
|
|
4836
|
-
|
|
4838
|
+
"kw_defaults": (
|
|
4839
|
+
self.subnode_kw_defaults.makeClone()
|
|
4840
|
+
if self.subnode_kw_defaults is not None
|
|
4841
|
+
else None
|
|
4842
|
+
),
|
|
4843
|
+
"annotations": (
|
|
4844
|
+
self.subnode_annotations.makeClone()
|
|
4845
|
+
if self.subnode_annotations is not None
|
|
4846
|
+
else None
|
|
4847
|
+
),
|
|
4837
4848
|
"function_ref": self.subnode_function_ref.makeClone(),
|
|
4838
4849
|
}
|
|
4839
4850
|
|
|
@@ -6192,6 +6203,115 @@ class ChildrenHavingExceptionTypeExceptionValueMixin(object):
|
|
|
6192
6203
|
ChildrenExpressionRaiseExceptionMixin = ChildrenHavingExceptionTypeExceptionValueMixin
|
|
6193
6204
|
|
|
6194
6205
|
|
|
6206
|
+
class ChildHavingExitCodeOptionalMixin(object):
|
|
6207
|
+
# Mixins are not allowed to specify slots, pylint: disable=assigning-non-slot
|
|
6208
|
+
__slots__ = ()
|
|
6209
|
+
|
|
6210
|
+
# This is generated for use in
|
|
6211
|
+
# ExpressionSysExit
|
|
6212
|
+
|
|
6213
|
+
def __init__(
|
|
6214
|
+
self,
|
|
6215
|
+
exit_code,
|
|
6216
|
+
):
|
|
6217
|
+
if exit_code is not None:
|
|
6218
|
+
exit_code.parent = self
|
|
6219
|
+
|
|
6220
|
+
self.subnode_exit_code = exit_code
|
|
6221
|
+
|
|
6222
|
+
def getVisitableNodes(self):
|
|
6223
|
+
"""The visitable nodes, with tuple values flattened."""
|
|
6224
|
+
|
|
6225
|
+
value = self.subnode_exit_code
|
|
6226
|
+
|
|
6227
|
+
if value is None:
|
|
6228
|
+
return ()
|
|
6229
|
+
else:
|
|
6230
|
+
return (value,)
|
|
6231
|
+
|
|
6232
|
+
def getVisitableNodesNamed(self):
|
|
6233
|
+
"""Named children dictionary.
|
|
6234
|
+
|
|
6235
|
+
For use in cloning nodes, debugging and XML output.
|
|
6236
|
+
"""
|
|
6237
|
+
|
|
6238
|
+
return (("exit_code", self.subnode_exit_code),)
|
|
6239
|
+
|
|
6240
|
+
def replaceChild(self, old_node, new_node):
|
|
6241
|
+
value = self.subnode_exit_code
|
|
6242
|
+
if old_node is value:
|
|
6243
|
+
if new_node is not None:
|
|
6244
|
+
new_node.parent = self
|
|
6245
|
+
|
|
6246
|
+
self.subnode_exit_code = new_node
|
|
6247
|
+
|
|
6248
|
+
return
|
|
6249
|
+
|
|
6250
|
+
raise AssertionError("Didn't find child", old_node, "in", self)
|
|
6251
|
+
|
|
6252
|
+
def getCloneArgs(self):
|
|
6253
|
+
"""Get clones of all children to pass for a new node.
|
|
6254
|
+
|
|
6255
|
+
Needs to make clones of child nodes too.
|
|
6256
|
+
"""
|
|
6257
|
+
|
|
6258
|
+
values = {
|
|
6259
|
+
"exit_code": (
|
|
6260
|
+
self.subnode_exit_code.makeClone()
|
|
6261
|
+
if self.subnode_exit_code is not None
|
|
6262
|
+
else None
|
|
6263
|
+
),
|
|
6264
|
+
}
|
|
6265
|
+
|
|
6266
|
+
values.update(self.getDetails())
|
|
6267
|
+
|
|
6268
|
+
return values
|
|
6269
|
+
|
|
6270
|
+
def finalize(self):
|
|
6271
|
+
del self.parent
|
|
6272
|
+
|
|
6273
|
+
if self.subnode_exit_code is not None:
|
|
6274
|
+
self.subnode_exit_code.finalize()
|
|
6275
|
+
del self.subnode_exit_code
|
|
6276
|
+
|
|
6277
|
+
def computeExpressionRaw(self, trace_collection):
|
|
6278
|
+
"""Compute an expression.
|
|
6279
|
+
|
|
6280
|
+
Default behavior is to just visit the child expressions first, and
|
|
6281
|
+
then the node "computeExpression". For a few cases this needs to
|
|
6282
|
+
be overloaded, e.g. conditional expressions.
|
|
6283
|
+
"""
|
|
6284
|
+
|
|
6285
|
+
# First apply the sub-expression, as they it's evaluated before.
|
|
6286
|
+
expression = self.subnode_exit_code
|
|
6287
|
+
|
|
6288
|
+
if expression is not None:
|
|
6289
|
+
expression = trace_collection.onExpression(expression)
|
|
6290
|
+
|
|
6291
|
+
if expression.willRaiseAnyException():
|
|
6292
|
+
return (
|
|
6293
|
+
expression,
|
|
6294
|
+
"new_raise",
|
|
6295
|
+
lambda: "For '%s' the child expression '%s' will raise."
|
|
6296
|
+
% (self.getChildNameNice(), expression.getChildNameNice()),
|
|
6297
|
+
)
|
|
6298
|
+
|
|
6299
|
+
# Then ask ourselves to work on it.
|
|
6300
|
+
return self.computeExpression(trace_collection)
|
|
6301
|
+
|
|
6302
|
+
def collectVariableAccesses(self, emit_read, emit_write):
|
|
6303
|
+
"""Collect variable reads and writes of child nodes."""
|
|
6304
|
+
|
|
6305
|
+
subnode_exit_code = self.subnode_exit_code
|
|
6306
|
+
|
|
6307
|
+
if subnode_exit_code is not None:
|
|
6308
|
+
self.subnode_exit_code.collectVariableAccesses(emit_read, emit_write)
|
|
6309
|
+
|
|
6310
|
+
|
|
6311
|
+
# Assign the names that are easier to import with a stable name.
|
|
6312
|
+
ChildrenExpressionSysExitMixin = ChildHavingExitCodeOptionalMixin
|
|
6313
|
+
|
|
6314
|
+
|
|
6195
6315
|
class ChildHavingExpressionMixin(object):
|
|
6196
6316
|
# Mixins are not allowed to specify slots, pylint: disable=assigning-non-slot
|
|
6197
6317
|
__slots__ = ()
|
|
@@ -6384,10 +6504,9 @@ class ChildHavingExpressionMixin(object):
|
|
|
6384
6504
|
# ExpressionAttributeLookupStrUpper
|
|
6385
6505
|
# ExpressionAttributeLookupStrZfill
|
|
6386
6506
|
# ExpressionAttributeLookupTypePrepare
|
|
6387
|
-
# ExpressionMatchArgs
|
|
6388
6507
|
# ExpressionYield
|
|
6389
6508
|
# ExpressionYieldFrom
|
|
6390
|
-
#
|
|
6509
|
+
# ExpressionYieldFromAwaitable
|
|
6391
6510
|
|
|
6392
6511
|
def __init__(
|
|
6393
6512
|
self,
|
|
@@ -6657,10 +6776,9 @@ ChildrenExpressionAttributeLookupStrTranslateMixin = ChildHavingExpressionMixin
|
|
|
6657
6776
|
ChildrenExpressionAttributeLookupStrUpperMixin = ChildHavingExpressionMixin
|
|
6658
6777
|
ChildrenExpressionAttributeLookupStrZfillMixin = ChildHavingExpressionMixin
|
|
6659
6778
|
ChildrenExpressionAttributeLookupTypePrepareMixin = ChildHavingExpressionMixin
|
|
6660
|
-
ChildrenExpressionMatchArgsMixin = ChildHavingExpressionMixin
|
|
6661
6779
|
ChildrenExpressionYieldMixin = ChildHavingExpressionMixin
|
|
6662
6780
|
ChildrenExpressionYieldFromMixin = ChildHavingExpressionMixin
|
|
6663
|
-
|
|
6781
|
+
ChildrenExpressionYieldFromAwaitableMixin = ChildHavingExpressionMixin
|
|
6664
6782
|
|
|
6665
6783
|
|
|
6666
6784
|
class ChildrenHavingExpressionLowerAutoNoneUpperAutoNoneMixin(object):
|
|
@@ -6760,12 +6878,16 @@ class ChildrenHavingExpressionLowerAutoNoneUpperAutoNoneMixin(object):
|
|
|
6760
6878
|
|
|
6761
6879
|
values = {
|
|
6762
6880
|
"expression": self.subnode_expression.makeClone(),
|
|
6763
|
-
"lower":
|
|
6764
|
-
|
|
6765
|
-
|
|
6766
|
-
|
|
6767
|
-
|
|
6768
|
-
|
|
6881
|
+
"lower": (
|
|
6882
|
+
self.subnode_lower.makeClone()
|
|
6883
|
+
if self.subnode_lower is not None
|
|
6884
|
+
else None
|
|
6885
|
+
),
|
|
6886
|
+
"upper": (
|
|
6887
|
+
self.subnode_upper.makeClone()
|
|
6888
|
+
if self.subnode_upper is not None
|
|
6889
|
+
else None
|
|
6890
|
+
),
|
|
6769
6891
|
}
|
|
6770
6892
|
|
|
6771
6893
|
values.update(self.getDetails())
|
|
@@ -6836,6 +6958,130 @@ ChildrenExpressionSliceLookupMixin = (
|
|
|
6836
6958
|
)
|
|
6837
6959
|
|
|
6838
6960
|
|
|
6961
|
+
class ChildrenHavingExpressionMatchTypeMixin(object):
|
|
6962
|
+
# Mixins are not allowed to specify slots, pylint: disable=assigning-non-slot
|
|
6963
|
+
__slots__ = ()
|
|
6964
|
+
|
|
6965
|
+
# This is generated for use in
|
|
6966
|
+
# ExpressionMatchArgs
|
|
6967
|
+
|
|
6968
|
+
def __init__(
|
|
6969
|
+
self,
|
|
6970
|
+
expression,
|
|
6971
|
+
match_type,
|
|
6972
|
+
):
|
|
6973
|
+
expression.parent = self
|
|
6974
|
+
|
|
6975
|
+
self.subnode_expression = expression
|
|
6976
|
+
|
|
6977
|
+
match_type.parent = self
|
|
6978
|
+
|
|
6979
|
+
self.subnode_match_type = match_type
|
|
6980
|
+
|
|
6981
|
+
def getVisitableNodes(self):
|
|
6982
|
+
"""The visitable nodes, with tuple values flattened."""
|
|
6983
|
+
|
|
6984
|
+
return (
|
|
6985
|
+
self.subnode_expression,
|
|
6986
|
+
self.subnode_match_type,
|
|
6987
|
+
)
|
|
6988
|
+
|
|
6989
|
+
def getVisitableNodesNamed(self):
|
|
6990
|
+
"""Named children dictionary.
|
|
6991
|
+
|
|
6992
|
+
For use in cloning nodes, debugging and XML output.
|
|
6993
|
+
"""
|
|
6994
|
+
|
|
6995
|
+
return (
|
|
6996
|
+
("expression", self.subnode_expression),
|
|
6997
|
+
("match_type", self.subnode_match_type),
|
|
6998
|
+
)
|
|
6999
|
+
|
|
7000
|
+
def replaceChild(self, old_node, new_node):
|
|
7001
|
+
value = self.subnode_expression
|
|
7002
|
+
if old_node is value:
|
|
7003
|
+
new_node.parent = self
|
|
7004
|
+
|
|
7005
|
+
self.subnode_expression = new_node
|
|
7006
|
+
|
|
7007
|
+
return
|
|
7008
|
+
|
|
7009
|
+
value = self.subnode_match_type
|
|
7010
|
+
if old_node is value:
|
|
7011
|
+
new_node.parent = self
|
|
7012
|
+
|
|
7013
|
+
self.subnode_match_type = new_node
|
|
7014
|
+
|
|
7015
|
+
return
|
|
7016
|
+
|
|
7017
|
+
raise AssertionError("Didn't find child", old_node, "in", self)
|
|
7018
|
+
|
|
7019
|
+
def getCloneArgs(self):
|
|
7020
|
+
"""Get clones of all children to pass for a new node.
|
|
7021
|
+
|
|
7022
|
+
Needs to make clones of child nodes too.
|
|
7023
|
+
"""
|
|
7024
|
+
|
|
7025
|
+
values = {
|
|
7026
|
+
"expression": self.subnode_expression.makeClone(),
|
|
7027
|
+
"match_type": self.subnode_match_type.makeClone(),
|
|
7028
|
+
}
|
|
7029
|
+
|
|
7030
|
+
values.update(self.getDetails())
|
|
7031
|
+
|
|
7032
|
+
return values
|
|
7033
|
+
|
|
7034
|
+
def finalize(self):
|
|
7035
|
+
del self.parent
|
|
7036
|
+
|
|
7037
|
+
self.subnode_expression.finalize()
|
|
7038
|
+
del self.subnode_expression
|
|
7039
|
+
self.subnode_match_type.finalize()
|
|
7040
|
+
del self.subnode_match_type
|
|
7041
|
+
|
|
7042
|
+
def computeExpressionRaw(self, trace_collection):
|
|
7043
|
+
"""Compute an expression.
|
|
7044
|
+
|
|
7045
|
+
Default behavior is to just visit the child expressions first, and
|
|
7046
|
+
then the node "computeExpression". For a few cases this needs to
|
|
7047
|
+
be overloaded, e.g. conditional expressions.
|
|
7048
|
+
"""
|
|
7049
|
+
|
|
7050
|
+
# First apply the sub-expressions, as they are evaluated before
|
|
7051
|
+
# the actual operation.
|
|
7052
|
+
for count, sub_expression in enumerate(self.getVisitableNodes()):
|
|
7053
|
+
expression = trace_collection.onExpression(sub_expression)
|
|
7054
|
+
|
|
7055
|
+
if expression.willRaiseAnyException():
|
|
7056
|
+
sub_expressions = self.getVisitableNodes()
|
|
7057
|
+
|
|
7058
|
+
wrapped_expression = wrapExpressionWithSideEffects(
|
|
7059
|
+
side_effects=sub_expressions[:count],
|
|
7060
|
+
old_node=sub_expression,
|
|
7061
|
+
new_node=expression,
|
|
7062
|
+
)
|
|
7063
|
+
|
|
7064
|
+
return (
|
|
7065
|
+
wrapped_expression,
|
|
7066
|
+
"new_raise",
|
|
7067
|
+
lambda: "For '%s' the child expression '%s' will raise."
|
|
7068
|
+
% (self.getChildNameNice(), expression.getChildNameNice()),
|
|
7069
|
+
)
|
|
7070
|
+
|
|
7071
|
+
# Then ask ourselves to work on it.
|
|
7072
|
+
return self.computeExpression(trace_collection)
|
|
7073
|
+
|
|
7074
|
+
def collectVariableAccesses(self, emit_read, emit_write):
|
|
7075
|
+
"""Collect variable reads and writes of child nodes."""
|
|
7076
|
+
|
|
7077
|
+
self.subnode_expression.collectVariableAccesses(emit_read, emit_write)
|
|
7078
|
+
self.subnode_match_type.collectVariableAccesses(emit_read, emit_write)
|
|
7079
|
+
|
|
7080
|
+
|
|
7081
|
+
# Assign the names that are easier to import with a stable name.
|
|
7082
|
+
ChildrenExpressionMatchArgsMixin = ChildrenHavingExpressionMatchTypeMixin
|
|
7083
|
+
|
|
7084
|
+
|
|
6839
7085
|
class ChildrenHavingExpressionNameDefaultOptionalMixin(object):
|
|
6840
7086
|
# Mixins are not allowed to specify slots, pylint: disable=assigning-non-slot
|
|
6841
7087
|
__slots__ = ()
|
|
@@ -6924,9 +7170,11 @@ class ChildrenHavingExpressionNameDefaultOptionalMixin(object):
|
|
|
6924
7170
|
values = {
|
|
6925
7171
|
"expression": self.subnode_expression.makeClone(),
|
|
6926
7172
|
"name": self.subnode_name.makeClone(),
|
|
6927
|
-
"default":
|
|
6928
|
-
|
|
6929
|
-
|
|
7173
|
+
"default": (
|
|
7174
|
+
self.subnode_default.makeClone()
|
|
7175
|
+
if self.subnode_default is not None
|
|
7176
|
+
else None
|
|
7177
|
+
),
|
|
6930
7178
|
}
|
|
6931
7179
|
|
|
6932
7180
|
values.update(self.getDetails())
|
|
@@ -7139,7 +7387,7 @@ class ChildrenHavingExpressionSubscriptMixin(object):
|
|
|
7139
7387
|
__slots__ = ()
|
|
7140
7388
|
|
|
7141
7389
|
# This is generated for use in
|
|
7142
|
-
#
|
|
7390
|
+
# ExpressionMatchSubscriptCheck
|
|
7143
7391
|
# ExpressionSubscriptLookup
|
|
7144
7392
|
# ExpressionSubscriptLookupForUnpack
|
|
7145
7393
|
|
|
@@ -7257,7 +7505,7 @@ class ChildrenHavingExpressionSubscriptMixin(object):
|
|
|
7257
7505
|
|
|
7258
7506
|
|
|
7259
7507
|
# Assign the names that are easier to import with a stable name.
|
|
7260
|
-
|
|
7508
|
+
ChildrenExpressionMatchSubscriptCheckMixin = ChildrenHavingExpressionSubscriptMixin
|
|
7261
7509
|
ChildrenExpressionSubscriptLookupMixin = ChildrenHavingExpressionSubscriptMixin
|
|
7262
7510
|
ChildrenExpressionSubscriptLookupForUnpackMixin = ChildrenHavingExpressionSubscriptMixin
|
|
7263
7511
|
|
|
@@ -7448,12 +7696,14 @@ class ChildrenHavingFilenameModeOptionalBufferingOptionalMixin(object):
|
|
|
7448
7696
|
|
|
7449
7697
|
values = {
|
|
7450
7698
|
"filename": self.subnode_filename.makeClone(),
|
|
7451
|
-
"mode":
|
|
7452
|
-
|
|
7453
|
-
|
|
7454
|
-
"buffering":
|
|
7455
|
-
|
|
7456
|
-
|
|
7699
|
+
"mode": (
|
|
7700
|
+
self.subnode_mode.makeClone() if self.subnode_mode is not None else None
|
|
7701
|
+
),
|
|
7702
|
+
"buffering": (
|
|
7703
|
+
self.subnode_buffering.makeClone()
|
|
7704
|
+
if self.subnode_buffering is not None
|
|
7705
|
+
else None
|
|
7706
|
+
),
|
|
7457
7707
|
}
|
|
7458
7708
|
|
|
7459
7709
|
values.update(self.getDetails())
|
|
@@ -7581,44 +7831,419 @@ class ChildrenHavingFilenameModeOptionalBufferingOptionalEncodingOptionalErrorsO
|
|
|
7581
7831
|
if opener is not None:
|
|
7582
7832
|
opener.parent = self
|
|
7583
7833
|
|
|
7584
|
-
self.subnode_opener = opener
|
|
7834
|
+
self.subnode_opener = opener
|
|
7835
|
+
|
|
7836
|
+
def getVisitableNodes(self):
|
|
7837
|
+
"""The visitable nodes, with tuple values flattened."""
|
|
7838
|
+
|
|
7839
|
+
result = []
|
|
7840
|
+
result.append(self.subnode_filename)
|
|
7841
|
+
value = self.subnode_mode
|
|
7842
|
+
if value is None:
|
|
7843
|
+
pass
|
|
7844
|
+
else:
|
|
7845
|
+
result.append(value)
|
|
7846
|
+
value = self.subnode_buffering
|
|
7847
|
+
if value is None:
|
|
7848
|
+
pass
|
|
7849
|
+
else:
|
|
7850
|
+
result.append(value)
|
|
7851
|
+
value = self.subnode_encoding
|
|
7852
|
+
if value is None:
|
|
7853
|
+
pass
|
|
7854
|
+
else:
|
|
7855
|
+
result.append(value)
|
|
7856
|
+
value = self.subnode_errors
|
|
7857
|
+
if value is None:
|
|
7858
|
+
pass
|
|
7859
|
+
else:
|
|
7860
|
+
result.append(value)
|
|
7861
|
+
value = self.subnode_newline
|
|
7862
|
+
if value is None:
|
|
7863
|
+
pass
|
|
7864
|
+
else:
|
|
7865
|
+
result.append(value)
|
|
7866
|
+
value = self.subnode_closefd
|
|
7867
|
+
if value is None:
|
|
7868
|
+
pass
|
|
7869
|
+
else:
|
|
7870
|
+
result.append(value)
|
|
7871
|
+
value = self.subnode_opener
|
|
7872
|
+
if value is None:
|
|
7873
|
+
pass
|
|
7874
|
+
else:
|
|
7875
|
+
result.append(value)
|
|
7876
|
+
return tuple(result)
|
|
7877
|
+
|
|
7878
|
+
def getVisitableNodesNamed(self):
|
|
7879
|
+
"""Named children dictionary.
|
|
7880
|
+
|
|
7881
|
+
For use in cloning nodes, debugging and XML output.
|
|
7882
|
+
"""
|
|
7883
|
+
|
|
7884
|
+
return (
|
|
7885
|
+
("filename", self.subnode_filename),
|
|
7886
|
+
("mode", self.subnode_mode),
|
|
7887
|
+
("buffering", self.subnode_buffering),
|
|
7888
|
+
("encoding", self.subnode_encoding),
|
|
7889
|
+
("errors", self.subnode_errors),
|
|
7890
|
+
("newline", self.subnode_newline),
|
|
7891
|
+
("closefd", self.subnode_closefd),
|
|
7892
|
+
("opener", self.subnode_opener),
|
|
7893
|
+
)
|
|
7894
|
+
|
|
7895
|
+
def replaceChild(self, old_node, new_node):
|
|
7896
|
+
value = self.subnode_filename
|
|
7897
|
+
if old_node is value:
|
|
7898
|
+
new_node.parent = self
|
|
7899
|
+
|
|
7900
|
+
self.subnode_filename = new_node
|
|
7901
|
+
|
|
7902
|
+
return
|
|
7903
|
+
|
|
7904
|
+
value = self.subnode_mode
|
|
7905
|
+
if old_node is value:
|
|
7906
|
+
if new_node is not None:
|
|
7907
|
+
new_node.parent = self
|
|
7908
|
+
|
|
7909
|
+
self.subnode_mode = new_node
|
|
7910
|
+
|
|
7911
|
+
return
|
|
7912
|
+
|
|
7913
|
+
value = self.subnode_buffering
|
|
7914
|
+
if old_node is value:
|
|
7915
|
+
if new_node is not None:
|
|
7916
|
+
new_node.parent = self
|
|
7917
|
+
|
|
7918
|
+
self.subnode_buffering = new_node
|
|
7919
|
+
|
|
7920
|
+
return
|
|
7921
|
+
|
|
7922
|
+
value = self.subnode_encoding
|
|
7923
|
+
if old_node is value:
|
|
7924
|
+
if new_node is not None:
|
|
7925
|
+
new_node.parent = self
|
|
7926
|
+
|
|
7927
|
+
self.subnode_encoding = new_node
|
|
7928
|
+
|
|
7929
|
+
return
|
|
7930
|
+
|
|
7931
|
+
value = self.subnode_errors
|
|
7932
|
+
if old_node is value:
|
|
7933
|
+
if new_node is not None:
|
|
7934
|
+
new_node.parent = self
|
|
7935
|
+
|
|
7936
|
+
self.subnode_errors = new_node
|
|
7937
|
+
|
|
7938
|
+
return
|
|
7939
|
+
|
|
7940
|
+
value = self.subnode_newline
|
|
7941
|
+
if old_node is value:
|
|
7942
|
+
if new_node is not None:
|
|
7943
|
+
new_node.parent = self
|
|
7944
|
+
|
|
7945
|
+
self.subnode_newline = new_node
|
|
7946
|
+
|
|
7947
|
+
return
|
|
7948
|
+
|
|
7949
|
+
value = self.subnode_closefd
|
|
7950
|
+
if old_node is value:
|
|
7951
|
+
if new_node is not None:
|
|
7952
|
+
new_node.parent = self
|
|
7953
|
+
|
|
7954
|
+
self.subnode_closefd = new_node
|
|
7955
|
+
|
|
7956
|
+
return
|
|
7957
|
+
|
|
7958
|
+
value = self.subnode_opener
|
|
7959
|
+
if old_node is value:
|
|
7960
|
+
if new_node is not None:
|
|
7961
|
+
new_node.parent = self
|
|
7962
|
+
|
|
7963
|
+
self.subnode_opener = new_node
|
|
7964
|
+
|
|
7965
|
+
return
|
|
7966
|
+
|
|
7967
|
+
raise AssertionError("Didn't find child", old_node, "in", self)
|
|
7968
|
+
|
|
7969
|
+
def getCloneArgs(self):
|
|
7970
|
+
"""Get clones of all children to pass for a new node.
|
|
7971
|
+
|
|
7972
|
+
Needs to make clones of child nodes too.
|
|
7973
|
+
"""
|
|
7974
|
+
|
|
7975
|
+
values = {
|
|
7976
|
+
"filename": self.subnode_filename.makeClone(),
|
|
7977
|
+
"mode": (
|
|
7978
|
+
self.subnode_mode.makeClone() if self.subnode_mode is not None else None
|
|
7979
|
+
),
|
|
7980
|
+
"buffering": (
|
|
7981
|
+
self.subnode_buffering.makeClone()
|
|
7982
|
+
if self.subnode_buffering is not None
|
|
7983
|
+
else None
|
|
7984
|
+
),
|
|
7985
|
+
"encoding": (
|
|
7986
|
+
self.subnode_encoding.makeClone()
|
|
7987
|
+
if self.subnode_encoding is not None
|
|
7988
|
+
else None
|
|
7989
|
+
),
|
|
7990
|
+
"errors": (
|
|
7991
|
+
self.subnode_errors.makeClone()
|
|
7992
|
+
if self.subnode_errors is not None
|
|
7993
|
+
else None
|
|
7994
|
+
),
|
|
7995
|
+
"newline": (
|
|
7996
|
+
self.subnode_newline.makeClone()
|
|
7997
|
+
if self.subnode_newline is not None
|
|
7998
|
+
else None
|
|
7999
|
+
),
|
|
8000
|
+
"closefd": (
|
|
8001
|
+
self.subnode_closefd.makeClone()
|
|
8002
|
+
if self.subnode_closefd is not None
|
|
8003
|
+
else None
|
|
8004
|
+
),
|
|
8005
|
+
"opener": (
|
|
8006
|
+
self.subnode_opener.makeClone()
|
|
8007
|
+
if self.subnode_opener is not None
|
|
8008
|
+
else None
|
|
8009
|
+
),
|
|
8010
|
+
}
|
|
8011
|
+
|
|
8012
|
+
values.update(self.getDetails())
|
|
8013
|
+
|
|
8014
|
+
return values
|
|
8015
|
+
|
|
8016
|
+
def finalize(self):
|
|
8017
|
+
del self.parent
|
|
8018
|
+
|
|
8019
|
+
self.subnode_filename.finalize()
|
|
8020
|
+
del self.subnode_filename
|
|
8021
|
+
if self.subnode_mode is not None:
|
|
8022
|
+
self.subnode_mode.finalize()
|
|
8023
|
+
del self.subnode_mode
|
|
8024
|
+
if self.subnode_buffering is not None:
|
|
8025
|
+
self.subnode_buffering.finalize()
|
|
8026
|
+
del self.subnode_buffering
|
|
8027
|
+
if self.subnode_encoding is not None:
|
|
8028
|
+
self.subnode_encoding.finalize()
|
|
8029
|
+
del self.subnode_encoding
|
|
8030
|
+
if self.subnode_errors is not None:
|
|
8031
|
+
self.subnode_errors.finalize()
|
|
8032
|
+
del self.subnode_errors
|
|
8033
|
+
if self.subnode_newline is not None:
|
|
8034
|
+
self.subnode_newline.finalize()
|
|
8035
|
+
del self.subnode_newline
|
|
8036
|
+
if self.subnode_closefd is not None:
|
|
8037
|
+
self.subnode_closefd.finalize()
|
|
8038
|
+
del self.subnode_closefd
|
|
8039
|
+
if self.subnode_opener is not None:
|
|
8040
|
+
self.subnode_opener.finalize()
|
|
8041
|
+
del self.subnode_opener
|
|
8042
|
+
|
|
8043
|
+
def computeExpressionRaw(self, trace_collection):
|
|
8044
|
+
"""Compute an expression.
|
|
8045
|
+
|
|
8046
|
+
Default behavior is to just visit the child expressions first, and
|
|
8047
|
+
then the node "computeExpression". For a few cases this needs to
|
|
8048
|
+
be overloaded, e.g. conditional expressions.
|
|
8049
|
+
"""
|
|
8050
|
+
|
|
8051
|
+
# First apply the sub-expressions, as they are evaluated before
|
|
8052
|
+
# the actual operation.
|
|
8053
|
+
for count, sub_expression in enumerate(self.getVisitableNodes()):
|
|
8054
|
+
expression = trace_collection.onExpression(sub_expression)
|
|
8055
|
+
|
|
8056
|
+
if expression.willRaiseAnyException():
|
|
8057
|
+
sub_expressions = self.getVisitableNodes()
|
|
8058
|
+
|
|
8059
|
+
wrapped_expression = wrapExpressionWithSideEffects(
|
|
8060
|
+
side_effects=sub_expressions[:count],
|
|
8061
|
+
old_node=sub_expression,
|
|
8062
|
+
new_node=expression,
|
|
8063
|
+
)
|
|
8064
|
+
|
|
8065
|
+
return (
|
|
8066
|
+
wrapped_expression,
|
|
8067
|
+
"new_raise",
|
|
8068
|
+
lambda: "For '%s' the child expression '%s' will raise."
|
|
8069
|
+
% (self.getChildNameNice(), expression.getChildNameNice()),
|
|
8070
|
+
)
|
|
8071
|
+
|
|
8072
|
+
# Then ask ourselves to work on it.
|
|
8073
|
+
return self.computeExpression(trace_collection)
|
|
8074
|
+
|
|
8075
|
+
def collectVariableAccesses(self, emit_read, emit_write):
|
|
8076
|
+
"""Collect variable reads and writes of child nodes."""
|
|
8077
|
+
|
|
8078
|
+
self.subnode_filename.collectVariableAccesses(emit_read, emit_write)
|
|
8079
|
+
subnode_mode = self.subnode_mode
|
|
8080
|
+
|
|
8081
|
+
if subnode_mode is not None:
|
|
8082
|
+
self.subnode_mode.collectVariableAccesses(emit_read, emit_write)
|
|
8083
|
+
subnode_buffering = self.subnode_buffering
|
|
8084
|
+
|
|
8085
|
+
if subnode_buffering is not None:
|
|
8086
|
+
self.subnode_buffering.collectVariableAccesses(emit_read, emit_write)
|
|
8087
|
+
subnode_encoding = self.subnode_encoding
|
|
8088
|
+
|
|
8089
|
+
if subnode_encoding is not None:
|
|
8090
|
+
self.subnode_encoding.collectVariableAccesses(emit_read, emit_write)
|
|
8091
|
+
subnode_errors = self.subnode_errors
|
|
8092
|
+
|
|
8093
|
+
if subnode_errors is not None:
|
|
8094
|
+
self.subnode_errors.collectVariableAccesses(emit_read, emit_write)
|
|
8095
|
+
subnode_newline = self.subnode_newline
|
|
8096
|
+
|
|
8097
|
+
if subnode_newline is not None:
|
|
8098
|
+
self.subnode_newline.collectVariableAccesses(emit_read, emit_write)
|
|
8099
|
+
subnode_closefd = self.subnode_closefd
|
|
8100
|
+
|
|
8101
|
+
if subnode_closefd is not None:
|
|
8102
|
+
self.subnode_closefd.collectVariableAccesses(emit_read, emit_write)
|
|
8103
|
+
subnode_opener = self.subnode_opener
|
|
8104
|
+
|
|
8105
|
+
if subnode_opener is not None:
|
|
8106
|
+
self.subnode_opener.collectVariableAccesses(emit_read, emit_write)
|
|
8107
|
+
|
|
8108
|
+
|
|
8109
|
+
# Assign the names that are easier to import with a stable name.
|
|
8110
|
+
ChildrenExpressionBuiltinOpenP3Mixin = ChildrenHavingFilenameModeOptionalBufferingOptionalEncodingOptionalErrorsOptionalNewlineOptionalClosefdOptionalOpenerOptionalMixin
|
|
8111
|
+
|
|
8112
|
+
|
|
8113
|
+
class ChildrenHavingFuncOptionalInputSignatureOptionalAutographOptionalJitCompileOptionalReduceRetracingOptionalExperimentalImplementsOptionalExperimentalAutographOptionsOptionalExperimentalAttributesOptionalExperimentalRelaxShapesOptionalExperimentalCompileOptionalExperimentalFollowTypeHintsOptionalMixin(
|
|
8114
|
+
object
|
|
8115
|
+
):
|
|
8116
|
+
# Mixins are not allowed to specify slots, pylint: disable=assigning-non-slot
|
|
8117
|
+
__slots__ = ()
|
|
8118
|
+
|
|
8119
|
+
# This is generated for use in
|
|
8120
|
+
# ExpressionTensorflowFunction
|
|
8121
|
+
# ExpressionTensorflowFunctionCall
|
|
8122
|
+
|
|
8123
|
+
def __init__(
|
|
8124
|
+
self,
|
|
8125
|
+
func,
|
|
8126
|
+
input_signature,
|
|
8127
|
+
autograph,
|
|
8128
|
+
jit_compile,
|
|
8129
|
+
reduce_retracing,
|
|
8130
|
+
experimental_implements,
|
|
8131
|
+
experimental_autograph_options,
|
|
8132
|
+
experimental_attributes,
|
|
8133
|
+
experimental_relax_shapes,
|
|
8134
|
+
experimental_compile,
|
|
8135
|
+
experimental_follow_type_hints,
|
|
8136
|
+
):
|
|
8137
|
+
if func is not None:
|
|
8138
|
+
func.parent = self
|
|
8139
|
+
|
|
8140
|
+
self.subnode_func = func
|
|
8141
|
+
|
|
8142
|
+
if input_signature is not None:
|
|
8143
|
+
input_signature.parent = self
|
|
8144
|
+
|
|
8145
|
+
self.subnode_input_signature = input_signature
|
|
8146
|
+
|
|
8147
|
+
if autograph is not None:
|
|
8148
|
+
autograph.parent = self
|
|
8149
|
+
|
|
8150
|
+
self.subnode_autograph = autograph
|
|
8151
|
+
|
|
8152
|
+
if jit_compile is not None:
|
|
8153
|
+
jit_compile.parent = self
|
|
8154
|
+
|
|
8155
|
+
self.subnode_jit_compile = jit_compile
|
|
8156
|
+
|
|
8157
|
+
if reduce_retracing is not None:
|
|
8158
|
+
reduce_retracing.parent = self
|
|
8159
|
+
|
|
8160
|
+
self.subnode_reduce_retracing = reduce_retracing
|
|
8161
|
+
|
|
8162
|
+
if experimental_implements is not None:
|
|
8163
|
+
experimental_implements.parent = self
|
|
8164
|
+
|
|
8165
|
+
self.subnode_experimental_implements = experimental_implements
|
|
8166
|
+
|
|
8167
|
+
if experimental_autograph_options is not None:
|
|
8168
|
+
experimental_autograph_options.parent = self
|
|
8169
|
+
|
|
8170
|
+
self.subnode_experimental_autograph_options = experimental_autograph_options
|
|
8171
|
+
|
|
8172
|
+
if experimental_attributes is not None:
|
|
8173
|
+
experimental_attributes.parent = self
|
|
8174
|
+
|
|
8175
|
+
self.subnode_experimental_attributes = experimental_attributes
|
|
8176
|
+
|
|
8177
|
+
if experimental_relax_shapes is not None:
|
|
8178
|
+
experimental_relax_shapes.parent = self
|
|
8179
|
+
|
|
8180
|
+
self.subnode_experimental_relax_shapes = experimental_relax_shapes
|
|
8181
|
+
|
|
8182
|
+
if experimental_compile is not None:
|
|
8183
|
+
experimental_compile.parent = self
|
|
8184
|
+
|
|
8185
|
+
self.subnode_experimental_compile = experimental_compile
|
|
8186
|
+
|
|
8187
|
+
if experimental_follow_type_hints is not None:
|
|
8188
|
+
experimental_follow_type_hints.parent = self
|
|
8189
|
+
|
|
8190
|
+
self.subnode_experimental_follow_type_hints = experimental_follow_type_hints
|
|
7585
8191
|
|
|
7586
8192
|
def getVisitableNodes(self):
|
|
7587
8193
|
"""The visitable nodes, with tuple values flattened."""
|
|
7588
8194
|
|
|
7589
8195
|
result = []
|
|
7590
|
-
|
|
7591
|
-
value = self.subnode_mode
|
|
8196
|
+
value = self.subnode_func
|
|
7592
8197
|
if value is None:
|
|
7593
8198
|
pass
|
|
7594
8199
|
else:
|
|
7595
8200
|
result.append(value)
|
|
7596
|
-
value = self.
|
|
8201
|
+
value = self.subnode_input_signature
|
|
7597
8202
|
if value is None:
|
|
7598
8203
|
pass
|
|
7599
8204
|
else:
|
|
7600
8205
|
result.append(value)
|
|
7601
|
-
value = self.
|
|
8206
|
+
value = self.subnode_autograph
|
|
7602
8207
|
if value is None:
|
|
7603
8208
|
pass
|
|
7604
8209
|
else:
|
|
7605
8210
|
result.append(value)
|
|
7606
|
-
value = self.
|
|
8211
|
+
value = self.subnode_jit_compile
|
|
7607
8212
|
if value is None:
|
|
7608
8213
|
pass
|
|
7609
8214
|
else:
|
|
7610
8215
|
result.append(value)
|
|
7611
|
-
value = self.
|
|
8216
|
+
value = self.subnode_reduce_retracing
|
|
7612
8217
|
if value is None:
|
|
7613
8218
|
pass
|
|
7614
8219
|
else:
|
|
7615
8220
|
result.append(value)
|
|
7616
|
-
value = self.
|
|
8221
|
+
value = self.subnode_experimental_implements
|
|
7617
8222
|
if value is None:
|
|
7618
8223
|
pass
|
|
7619
8224
|
else:
|
|
7620
8225
|
result.append(value)
|
|
7621
|
-
value = self.
|
|
8226
|
+
value = self.subnode_experimental_autograph_options
|
|
8227
|
+
if value is None:
|
|
8228
|
+
pass
|
|
8229
|
+
else:
|
|
8230
|
+
result.append(value)
|
|
8231
|
+
value = self.subnode_experimental_attributes
|
|
8232
|
+
if value is None:
|
|
8233
|
+
pass
|
|
8234
|
+
else:
|
|
8235
|
+
result.append(value)
|
|
8236
|
+
value = self.subnode_experimental_relax_shapes
|
|
8237
|
+
if value is None:
|
|
8238
|
+
pass
|
|
8239
|
+
else:
|
|
8240
|
+
result.append(value)
|
|
8241
|
+
value = self.subnode_experimental_compile
|
|
8242
|
+
if value is None:
|
|
8243
|
+
pass
|
|
8244
|
+
else:
|
|
8245
|
+
result.append(value)
|
|
8246
|
+
value = self.subnode_experimental_follow_type_hints
|
|
7622
8247
|
if value is None:
|
|
7623
8248
|
pass
|
|
7624
8249
|
else:
|
|
@@ -7632,85 +8257,122 @@ class ChildrenHavingFilenameModeOptionalBufferingOptionalEncodingOptionalErrorsO
|
|
|
7632
8257
|
"""
|
|
7633
8258
|
|
|
7634
8259
|
return (
|
|
7635
|
-
("
|
|
7636
|
-
("
|
|
7637
|
-
("
|
|
7638
|
-
("
|
|
7639
|
-
("
|
|
7640
|
-
("
|
|
7641
|
-
(
|
|
7642
|
-
|
|
8260
|
+
("func", self.subnode_func),
|
|
8261
|
+
("input_signature", self.subnode_input_signature),
|
|
8262
|
+
("autograph", self.subnode_autograph),
|
|
8263
|
+
("jit_compile", self.subnode_jit_compile),
|
|
8264
|
+
("reduce_retracing", self.subnode_reduce_retracing),
|
|
8265
|
+
("experimental_implements", self.subnode_experimental_implements),
|
|
8266
|
+
(
|
|
8267
|
+
"experimental_autograph_options",
|
|
8268
|
+
self.subnode_experimental_autograph_options,
|
|
8269
|
+
),
|
|
8270
|
+
("experimental_attributes", self.subnode_experimental_attributes),
|
|
8271
|
+
("experimental_relax_shapes", self.subnode_experimental_relax_shapes),
|
|
8272
|
+
("experimental_compile", self.subnode_experimental_compile),
|
|
8273
|
+
(
|
|
8274
|
+
"experimental_follow_type_hints",
|
|
8275
|
+
self.subnode_experimental_follow_type_hints,
|
|
8276
|
+
),
|
|
7643
8277
|
)
|
|
7644
8278
|
|
|
7645
8279
|
def replaceChild(self, old_node, new_node):
|
|
7646
|
-
value = self.
|
|
8280
|
+
value = self.subnode_func
|
|
7647
8281
|
if old_node is value:
|
|
7648
|
-
new_node
|
|
8282
|
+
if new_node is not None:
|
|
8283
|
+
new_node.parent = self
|
|
7649
8284
|
|
|
7650
|
-
self.
|
|
8285
|
+
self.subnode_func = new_node
|
|
7651
8286
|
|
|
7652
8287
|
return
|
|
7653
8288
|
|
|
7654
|
-
value = self.
|
|
8289
|
+
value = self.subnode_input_signature
|
|
7655
8290
|
if old_node is value:
|
|
7656
8291
|
if new_node is not None:
|
|
7657
8292
|
new_node.parent = self
|
|
7658
8293
|
|
|
7659
|
-
self.
|
|
8294
|
+
self.subnode_input_signature = new_node
|
|
7660
8295
|
|
|
7661
8296
|
return
|
|
7662
8297
|
|
|
7663
|
-
value = self.
|
|
8298
|
+
value = self.subnode_autograph
|
|
7664
8299
|
if old_node is value:
|
|
7665
8300
|
if new_node is not None:
|
|
7666
8301
|
new_node.parent = self
|
|
7667
8302
|
|
|
7668
|
-
self.
|
|
8303
|
+
self.subnode_autograph = new_node
|
|
7669
8304
|
|
|
7670
8305
|
return
|
|
7671
8306
|
|
|
7672
|
-
value = self.
|
|
8307
|
+
value = self.subnode_jit_compile
|
|
7673
8308
|
if old_node is value:
|
|
7674
8309
|
if new_node is not None:
|
|
7675
8310
|
new_node.parent = self
|
|
7676
8311
|
|
|
7677
|
-
self.
|
|
8312
|
+
self.subnode_jit_compile = new_node
|
|
7678
8313
|
|
|
7679
8314
|
return
|
|
7680
8315
|
|
|
7681
|
-
value = self.
|
|
8316
|
+
value = self.subnode_reduce_retracing
|
|
7682
8317
|
if old_node is value:
|
|
7683
8318
|
if new_node is not None:
|
|
7684
8319
|
new_node.parent = self
|
|
7685
8320
|
|
|
7686
|
-
self.
|
|
8321
|
+
self.subnode_reduce_retracing = new_node
|
|
7687
8322
|
|
|
7688
8323
|
return
|
|
7689
8324
|
|
|
7690
|
-
value = self.
|
|
8325
|
+
value = self.subnode_experimental_implements
|
|
7691
8326
|
if old_node is value:
|
|
7692
8327
|
if new_node is not None:
|
|
7693
8328
|
new_node.parent = self
|
|
7694
8329
|
|
|
7695
|
-
self.
|
|
8330
|
+
self.subnode_experimental_implements = new_node
|
|
7696
8331
|
|
|
7697
8332
|
return
|
|
7698
8333
|
|
|
7699
|
-
value = self.
|
|
8334
|
+
value = self.subnode_experimental_autograph_options
|
|
7700
8335
|
if old_node is value:
|
|
7701
8336
|
if new_node is not None:
|
|
7702
8337
|
new_node.parent = self
|
|
7703
8338
|
|
|
7704
|
-
self.
|
|
8339
|
+
self.subnode_experimental_autograph_options = new_node
|
|
7705
8340
|
|
|
7706
8341
|
return
|
|
7707
8342
|
|
|
7708
|
-
value = self.
|
|
8343
|
+
value = self.subnode_experimental_attributes
|
|
7709
8344
|
if old_node is value:
|
|
7710
8345
|
if new_node is not None:
|
|
7711
8346
|
new_node.parent = self
|
|
7712
8347
|
|
|
7713
|
-
self.
|
|
8348
|
+
self.subnode_experimental_attributes = new_node
|
|
8349
|
+
|
|
8350
|
+
return
|
|
8351
|
+
|
|
8352
|
+
value = self.subnode_experimental_relax_shapes
|
|
8353
|
+
if old_node is value:
|
|
8354
|
+
if new_node is not None:
|
|
8355
|
+
new_node.parent = self
|
|
8356
|
+
|
|
8357
|
+
self.subnode_experimental_relax_shapes = new_node
|
|
8358
|
+
|
|
8359
|
+
return
|
|
8360
|
+
|
|
8361
|
+
value = self.subnode_experimental_compile
|
|
8362
|
+
if old_node is value:
|
|
8363
|
+
if new_node is not None:
|
|
8364
|
+
new_node.parent = self
|
|
8365
|
+
|
|
8366
|
+
self.subnode_experimental_compile = new_node
|
|
8367
|
+
|
|
8368
|
+
return
|
|
8369
|
+
|
|
8370
|
+
value = self.subnode_experimental_follow_type_hints
|
|
8371
|
+
if old_node is value:
|
|
8372
|
+
if new_node is not None:
|
|
8373
|
+
new_node.parent = self
|
|
8374
|
+
|
|
8375
|
+
self.subnode_experimental_follow_type_hints = new_node
|
|
7714
8376
|
|
|
7715
8377
|
return
|
|
7716
8378
|
|
|
@@ -7723,28 +8385,59 @@ class ChildrenHavingFilenameModeOptionalBufferingOptionalEncodingOptionalErrorsO
|
|
|
7723
8385
|
"""
|
|
7724
8386
|
|
|
7725
8387
|
values = {
|
|
7726
|
-
"
|
|
7727
|
-
|
|
7728
|
-
|
|
7729
|
-
|
|
7730
|
-
|
|
7731
|
-
|
|
7732
|
-
|
|
7733
|
-
|
|
7734
|
-
|
|
7735
|
-
|
|
7736
|
-
|
|
7737
|
-
|
|
7738
|
-
|
|
7739
|
-
"
|
|
7740
|
-
|
|
7741
|
-
|
|
7742
|
-
|
|
7743
|
-
|
|
7744
|
-
|
|
7745
|
-
|
|
7746
|
-
|
|
7747
|
-
|
|
8388
|
+
"func": (
|
|
8389
|
+
self.subnode_func.makeClone() if self.subnode_func is not None else None
|
|
8390
|
+
),
|
|
8391
|
+
"input_signature": (
|
|
8392
|
+
self.subnode_input_signature.makeClone()
|
|
8393
|
+
if self.subnode_input_signature is not None
|
|
8394
|
+
else None
|
|
8395
|
+
),
|
|
8396
|
+
"autograph": (
|
|
8397
|
+
self.subnode_autograph.makeClone()
|
|
8398
|
+
if self.subnode_autograph is not None
|
|
8399
|
+
else None
|
|
8400
|
+
),
|
|
8401
|
+
"jit_compile": (
|
|
8402
|
+
self.subnode_jit_compile.makeClone()
|
|
8403
|
+
if self.subnode_jit_compile is not None
|
|
8404
|
+
else None
|
|
8405
|
+
),
|
|
8406
|
+
"reduce_retracing": (
|
|
8407
|
+
self.subnode_reduce_retracing.makeClone()
|
|
8408
|
+
if self.subnode_reduce_retracing is not None
|
|
8409
|
+
else None
|
|
8410
|
+
),
|
|
8411
|
+
"experimental_implements": (
|
|
8412
|
+
self.subnode_experimental_implements.makeClone()
|
|
8413
|
+
if self.subnode_experimental_implements is not None
|
|
8414
|
+
else None
|
|
8415
|
+
),
|
|
8416
|
+
"experimental_autograph_options": (
|
|
8417
|
+
self.subnode_experimental_autograph_options.makeClone()
|
|
8418
|
+
if self.subnode_experimental_autograph_options is not None
|
|
8419
|
+
else None
|
|
8420
|
+
),
|
|
8421
|
+
"experimental_attributes": (
|
|
8422
|
+
self.subnode_experimental_attributes.makeClone()
|
|
8423
|
+
if self.subnode_experimental_attributes is not None
|
|
8424
|
+
else None
|
|
8425
|
+
),
|
|
8426
|
+
"experimental_relax_shapes": (
|
|
8427
|
+
self.subnode_experimental_relax_shapes.makeClone()
|
|
8428
|
+
if self.subnode_experimental_relax_shapes is not None
|
|
8429
|
+
else None
|
|
8430
|
+
),
|
|
8431
|
+
"experimental_compile": (
|
|
8432
|
+
self.subnode_experimental_compile.makeClone()
|
|
8433
|
+
if self.subnode_experimental_compile is not None
|
|
8434
|
+
else None
|
|
8435
|
+
),
|
|
8436
|
+
"experimental_follow_type_hints": (
|
|
8437
|
+
self.subnode_experimental_follow_type_hints.makeClone()
|
|
8438
|
+
if self.subnode_experimental_follow_type_hints is not None
|
|
8439
|
+
else None
|
|
8440
|
+
),
|
|
7748
8441
|
}
|
|
7749
8442
|
|
|
7750
8443
|
values.update(self.getDetails())
|
|
@@ -7754,29 +8447,39 @@ class ChildrenHavingFilenameModeOptionalBufferingOptionalEncodingOptionalErrorsO
|
|
|
7754
8447
|
def finalize(self):
|
|
7755
8448
|
del self.parent
|
|
7756
8449
|
|
|
7757
|
-
self.
|
|
7758
|
-
|
|
7759
|
-
|
|
7760
|
-
|
|
7761
|
-
|
|
7762
|
-
|
|
7763
|
-
|
|
7764
|
-
|
|
7765
|
-
|
|
7766
|
-
|
|
7767
|
-
|
|
7768
|
-
|
|
7769
|
-
|
|
7770
|
-
|
|
7771
|
-
|
|
7772
|
-
|
|
7773
|
-
|
|
7774
|
-
|
|
7775
|
-
|
|
7776
|
-
|
|
7777
|
-
|
|
7778
|
-
|
|
7779
|
-
|
|
8450
|
+
if self.subnode_func is not None:
|
|
8451
|
+
self.subnode_func.finalize()
|
|
8452
|
+
del self.subnode_func
|
|
8453
|
+
if self.subnode_input_signature is not None:
|
|
8454
|
+
self.subnode_input_signature.finalize()
|
|
8455
|
+
del self.subnode_input_signature
|
|
8456
|
+
if self.subnode_autograph is not None:
|
|
8457
|
+
self.subnode_autograph.finalize()
|
|
8458
|
+
del self.subnode_autograph
|
|
8459
|
+
if self.subnode_jit_compile is not None:
|
|
8460
|
+
self.subnode_jit_compile.finalize()
|
|
8461
|
+
del self.subnode_jit_compile
|
|
8462
|
+
if self.subnode_reduce_retracing is not None:
|
|
8463
|
+
self.subnode_reduce_retracing.finalize()
|
|
8464
|
+
del self.subnode_reduce_retracing
|
|
8465
|
+
if self.subnode_experimental_implements is not None:
|
|
8466
|
+
self.subnode_experimental_implements.finalize()
|
|
8467
|
+
del self.subnode_experimental_implements
|
|
8468
|
+
if self.subnode_experimental_autograph_options is not None:
|
|
8469
|
+
self.subnode_experimental_autograph_options.finalize()
|
|
8470
|
+
del self.subnode_experimental_autograph_options
|
|
8471
|
+
if self.subnode_experimental_attributes is not None:
|
|
8472
|
+
self.subnode_experimental_attributes.finalize()
|
|
8473
|
+
del self.subnode_experimental_attributes
|
|
8474
|
+
if self.subnode_experimental_relax_shapes is not None:
|
|
8475
|
+
self.subnode_experimental_relax_shapes.finalize()
|
|
8476
|
+
del self.subnode_experimental_relax_shapes
|
|
8477
|
+
if self.subnode_experimental_compile is not None:
|
|
8478
|
+
self.subnode_experimental_compile.finalize()
|
|
8479
|
+
del self.subnode_experimental_compile
|
|
8480
|
+
if self.subnode_experimental_follow_type_hints is not None:
|
|
8481
|
+
self.subnode_experimental_follow_type_hints.finalize()
|
|
8482
|
+
del self.subnode_experimental_follow_type_hints
|
|
7780
8483
|
|
|
7781
8484
|
def computeExpressionRaw(self, trace_collection):
|
|
7782
8485
|
"""Compute an expression.
|
|
@@ -7813,39 +8516,71 @@ class ChildrenHavingFilenameModeOptionalBufferingOptionalEncodingOptionalErrorsO
|
|
|
7813
8516
|
def collectVariableAccesses(self, emit_read, emit_write):
|
|
7814
8517
|
"""Collect variable reads and writes of child nodes."""
|
|
7815
8518
|
|
|
7816
|
-
self.
|
|
7817
|
-
subnode_mode = self.subnode_mode
|
|
8519
|
+
subnode_func = self.subnode_func
|
|
7818
8520
|
|
|
7819
|
-
if
|
|
7820
|
-
self.
|
|
7821
|
-
|
|
8521
|
+
if subnode_func is not None:
|
|
8522
|
+
self.subnode_func.collectVariableAccesses(emit_read, emit_write)
|
|
8523
|
+
subnode_input_signature = self.subnode_input_signature
|
|
7822
8524
|
|
|
7823
|
-
if
|
|
7824
|
-
self.
|
|
7825
|
-
|
|
8525
|
+
if subnode_input_signature is not None:
|
|
8526
|
+
self.subnode_input_signature.collectVariableAccesses(emit_read, emit_write)
|
|
8527
|
+
subnode_autograph = self.subnode_autograph
|
|
7826
8528
|
|
|
7827
|
-
if
|
|
7828
|
-
self.
|
|
7829
|
-
|
|
8529
|
+
if subnode_autograph is not None:
|
|
8530
|
+
self.subnode_autograph.collectVariableAccesses(emit_read, emit_write)
|
|
8531
|
+
subnode_jit_compile = self.subnode_jit_compile
|
|
7830
8532
|
|
|
7831
|
-
if
|
|
7832
|
-
self.
|
|
7833
|
-
|
|
8533
|
+
if subnode_jit_compile is not None:
|
|
8534
|
+
self.subnode_jit_compile.collectVariableAccesses(emit_read, emit_write)
|
|
8535
|
+
subnode_reduce_retracing = self.subnode_reduce_retracing
|
|
7834
8536
|
|
|
7835
|
-
if
|
|
7836
|
-
self.
|
|
7837
|
-
|
|
8537
|
+
if subnode_reduce_retracing is not None:
|
|
8538
|
+
self.subnode_reduce_retracing.collectVariableAccesses(emit_read, emit_write)
|
|
8539
|
+
subnode_experimental_implements = self.subnode_experimental_implements
|
|
7838
8540
|
|
|
7839
|
-
if
|
|
7840
|
-
self.
|
|
7841
|
-
|
|
8541
|
+
if subnode_experimental_implements is not None:
|
|
8542
|
+
self.subnode_experimental_implements.collectVariableAccesses(
|
|
8543
|
+
emit_read, emit_write
|
|
8544
|
+
)
|
|
8545
|
+
subnode_experimental_autograph_options = (
|
|
8546
|
+
self.subnode_experimental_autograph_options
|
|
8547
|
+
)
|
|
7842
8548
|
|
|
7843
|
-
if
|
|
7844
|
-
self.
|
|
8549
|
+
if subnode_experimental_autograph_options is not None:
|
|
8550
|
+
self.subnode_experimental_autograph_options.collectVariableAccesses(
|
|
8551
|
+
emit_read, emit_write
|
|
8552
|
+
)
|
|
8553
|
+
subnode_experimental_attributes = self.subnode_experimental_attributes
|
|
8554
|
+
|
|
8555
|
+
if subnode_experimental_attributes is not None:
|
|
8556
|
+
self.subnode_experimental_attributes.collectVariableAccesses(
|
|
8557
|
+
emit_read, emit_write
|
|
8558
|
+
)
|
|
8559
|
+
subnode_experimental_relax_shapes = self.subnode_experimental_relax_shapes
|
|
8560
|
+
|
|
8561
|
+
if subnode_experimental_relax_shapes is not None:
|
|
8562
|
+
self.subnode_experimental_relax_shapes.collectVariableAccesses(
|
|
8563
|
+
emit_read, emit_write
|
|
8564
|
+
)
|
|
8565
|
+
subnode_experimental_compile = self.subnode_experimental_compile
|
|
8566
|
+
|
|
8567
|
+
if subnode_experimental_compile is not None:
|
|
8568
|
+
self.subnode_experimental_compile.collectVariableAccesses(
|
|
8569
|
+
emit_read, emit_write
|
|
8570
|
+
)
|
|
8571
|
+
subnode_experimental_follow_type_hints = (
|
|
8572
|
+
self.subnode_experimental_follow_type_hints
|
|
8573
|
+
)
|
|
8574
|
+
|
|
8575
|
+
if subnode_experimental_follow_type_hints is not None:
|
|
8576
|
+
self.subnode_experimental_follow_type_hints.collectVariableAccesses(
|
|
8577
|
+
emit_read, emit_write
|
|
8578
|
+
)
|
|
7845
8579
|
|
|
7846
8580
|
|
|
7847
8581
|
# Assign the names that are easier to import with a stable name.
|
|
7848
|
-
|
|
8582
|
+
ChildrenExpressionTensorflowFunctionMixin = ChildrenHavingFuncOptionalInputSignatureOptionalAutographOptionalJitCompileOptionalReduceRetracingOptionalExperimentalImplementsOptionalExperimentalAutographOptionsOptionalExperimentalAttributesOptionalExperimentalRelaxShapesOptionalExperimentalCompileOptionalExperimentalFollowTypeHintsOptionalMixin
|
|
8583
|
+
ChildrenExpressionTensorflowFunctionCallMixin = ChildrenHavingFuncOptionalInputSignatureOptionalAutographOptionalJitCompileOptionalReduceRetracingOptionalExperimentalImplementsOptionalExperimentalAutographOptionsOptionalExperimentalAttributesOptionalExperimentalRelaxShapesOptionalExperimentalCompileOptionalExperimentalFollowTypeHintsOptionalMixin
|
|
7849
8584
|
|
|
7850
8585
|
|
|
7851
8586
|
class ChildrenHavingFunctionValuesTupleMixin(object):
|
|
@@ -8146,9 +8881,9 @@ class ChildrenHavingGroupNameOptionalMixin(object):
|
|
|
8146
8881
|
|
|
8147
8882
|
values = {
|
|
8148
8883
|
"group": self.subnode_group.makeClone(),
|
|
8149
|
-
"name":
|
|
8150
|
-
|
|
8151
|
-
|
|
8884
|
+
"name": (
|
|
8885
|
+
self.subnode_name.makeClone() if self.subnode_name is not None else None
|
|
8886
|
+
),
|
|
8152
8887
|
}
|
|
8153
8888
|
|
|
8154
8889
|
values.update(self.getDetails())
|
|
@@ -9047,13 +9782,17 @@ class ChildrenHavingKwDefaultsOptionalDefaultsTupleAnnotationsOptionalFunctionRe
|
|
|
9047
9782
|
"""
|
|
9048
9783
|
|
|
9049
9784
|
values = {
|
|
9050
|
-
"kw_defaults":
|
|
9051
|
-
|
|
9052
|
-
|
|
9785
|
+
"kw_defaults": (
|
|
9786
|
+
self.subnode_kw_defaults.makeClone()
|
|
9787
|
+
if self.subnode_kw_defaults is not None
|
|
9788
|
+
else None
|
|
9789
|
+
),
|
|
9053
9790
|
"defaults": tuple(v.makeClone() for v in self.subnode_defaults),
|
|
9054
|
-
"annotations":
|
|
9055
|
-
|
|
9056
|
-
|
|
9791
|
+
"annotations": (
|
|
9792
|
+
self.subnode_annotations.makeClone()
|
|
9793
|
+
if self.subnode_annotations is not None
|
|
9794
|
+
else None
|
|
9795
|
+
),
|
|
9057
9796
|
"function_ref": self.subnode_function_ref.makeClone(),
|
|
9058
9797
|
}
|
|
9059
9798
|
|
|
@@ -9907,9 +10646,9 @@ class ChildrenHavingListArgKeyOptionalReverseMixin(object):
|
|
|
9907
10646
|
|
|
9908
10647
|
values = {
|
|
9909
10648
|
"list_arg": self.subnode_list_arg.makeClone(),
|
|
9910
|
-
"key":
|
|
9911
|
-
|
|
9912
|
-
|
|
10649
|
+
"key": (
|
|
10650
|
+
self.subnode_key.makeClone() if self.subnode_key is not None else None
|
|
10651
|
+
),
|
|
9913
10652
|
"reverse": self.subnode_reverse.makeClone(),
|
|
9914
10653
|
}
|
|
9915
10654
|
|
|
@@ -11131,18 +11870,26 @@ class ChildrenHavingNameGlobalsArgOptionalLocalsArgOptionalFromlistOptionalLevel
|
|
|
11131
11870
|
|
|
11132
11871
|
values = {
|
|
11133
11872
|
"name": self.subnode_name.makeClone(),
|
|
11134
|
-
"globals_arg":
|
|
11135
|
-
|
|
11136
|
-
|
|
11137
|
-
|
|
11138
|
-
|
|
11139
|
-
|
|
11140
|
-
|
|
11141
|
-
|
|
11142
|
-
|
|
11143
|
-
|
|
11144
|
-
|
|
11145
|
-
|
|
11873
|
+
"globals_arg": (
|
|
11874
|
+
self.subnode_globals_arg.makeClone()
|
|
11875
|
+
if self.subnode_globals_arg is not None
|
|
11876
|
+
else None
|
|
11877
|
+
),
|
|
11878
|
+
"locals_arg": (
|
|
11879
|
+
self.subnode_locals_arg.makeClone()
|
|
11880
|
+
if self.subnode_locals_arg is not None
|
|
11881
|
+
else None
|
|
11882
|
+
),
|
|
11883
|
+
"fromlist": (
|
|
11884
|
+
self.subnode_fromlist.makeClone()
|
|
11885
|
+
if self.subnode_fromlist is not None
|
|
11886
|
+
else None
|
|
11887
|
+
),
|
|
11888
|
+
"level": (
|
|
11889
|
+
self.subnode_level.makeClone()
|
|
11890
|
+
if self.subnode_level is not None
|
|
11891
|
+
else None
|
|
11892
|
+
),
|
|
11146
11893
|
}
|
|
11147
11894
|
|
|
11148
11895
|
values.update(self.getDetails())
|
|
@@ -11225,7 +11972,7 @@ class ChildrenHavingNameGlobalsArgOptionalLocalsArgOptionalFromlistOptionalLevel
|
|
|
11225
11972
|
ChildrenExpressionBuiltinImportMixin = ChildrenHavingNameGlobalsArgOptionalLocalsArgOptionalFromlistOptionalLevelOptionalMixin
|
|
11226
11973
|
|
|
11227
11974
|
|
|
11228
|
-
class
|
|
11975
|
+
class ChildrenHavingNameModeOptionalHandleOptionalUseErrnoOptionalUseLastErrorOptionalMixin(
|
|
11229
11976
|
object
|
|
11230
11977
|
):
|
|
11231
11978
|
# Mixins are not allowed to specify slots, pylint: disable=assigning-non-slot
|
|
@@ -11240,7 +11987,7 @@ class ChildrenHavingNameModeOptionalHandleOptionalUseErrnoOptionalUseLasterrorOp
|
|
|
11240
11987
|
mode,
|
|
11241
11988
|
handle,
|
|
11242
11989
|
use_errno,
|
|
11243
|
-
|
|
11990
|
+
use_last_error,
|
|
11244
11991
|
):
|
|
11245
11992
|
name.parent = self
|
|
11246
11993
|
|
|
@@ -11261,10 +12008,10 @@ class ChildrenHavingNameModeOptionalHandleOptionalUseErrnoOptionalUseLasterrorOp
|
|
|
11261
12008
|
|
|
11262
12009
|
self.subnode_use_errno = use_errno
|
|
11263
12010
|
|
|
11264
|
-
if
|
|
11265
|
-
|
|
12011
|
+
if use_last_error is not None:
|
|
12012
|
+
use_last_error.parent = self
|
|
11266
12013
|
|
|
11267
|
-
self.
|
|
12014
|
+
self.subnode_use_last_error = use_last_error
|
|
11268
12015
|
|
|
11269
12016
|
def getVisitableNodes(self):
|
|
11270
12017
|
"""The visitable nodes, with tuple values flattened."""
|
|
@@ -11286,7 +12033,7 @@ class ChildrenHavingNameModeOptionalHandleOptionalUseErrnoOptionalUseLasterrorOp
|
|
|
11286
12033
|
pass
|
|
11287
12034
|
else:
|
|
11288
12035
|
result.append(value)
|
|
11289
|
-
value = self.
|
|
12036
|
+
value = self.subnode_use_last_error
|
|
11290
12037
|
if value is None:
|
|
11291
12038
|
pass
|
|
11292
12039
|
else:
|
|
@@ -11304,7 +12051,7 @@ class ChildrenHavingNameModeOptionalHandleOptionalUseErrnoOptionalUseLasterrorOp
|
|
|
11304
12051
|
("mode", self.subnode_mode),
|
|
11305
12052
|
("handle", self.subnode_handle),
|
|
11306
12053
|
("use_errno", self.subnode_use_errno),
|
|
11307
|
-
("
|
|
12054
|
+
("use_last_error", self.subnode_use_last_error),
|
|
11308
12055
|
)
|
|
11309
12056
|
|
|
11310
12057
|
def replaceChild(self, old_node, new_node):
|
|
@@ -11343,12 +12090,12 @@ class ChildrenHavingNameModeOptionalHandleOptionalUseErrnoOptionalUseLasterrorOp
|
|
|
11343
12090
|
|
|
11344
12091
|
return
|
|
11345
12092
|
|
|
11346
|
-
value = self.
|
|
12093
|
+
value = self.subnode_use_last_error
|
|
11347
12094
|
if old_node is value:
|
|
11348
12095
|
if new_node is not None:
|
|
11349
12096
|
new_node.parent = self
|
|
11350
12097
|
|
|
11351
|
-
self.
|
|
12098
|
+
self.subnode_use_last_error = new_node
|
|
11352
12099
|
|
|
11353
12100
|
return
|
|
11354
12101
|
|
|
@@ -11362,18 +12109,24 @@ class ChildrenHavingNameModeOptionalHandleOptionalUseErrnoOptionalUseLasterrorOp
|
|
|
11362
12109
|
|
|
11363
12110
|
values = {
|
|
11364
12111
|
"name": self.subnode_name.makeClone(),
|
|
11365
|
-
"mode":
|
|
11366
|
-
|
|
11367
|
-
|
|
11368
|
-
"handle":
|
|
11369
|
-
|
|
11370
|
-
|
|
11371
|
-
|
|
11372
|
-
|
|
11373
|
-
|
|
11374
|
-
|
|
11375
|
-
|
|
11376
|
-
|
|
12112
|
+
"mode": (
|
|
12113
|
+
self.subnode_mode.makeClone() if self.subnode_mode is not None else None
|
|
12114
|
+
),
|
|
12115
|
+
"handle": (
|
|
12116
|
+
self.subnode_handle.makeClone()
|
|
12117
|
+
if self.subnode_handle is not None
|
|
12118
|
+
else None
|
|
12119
|
+
),
|
|
12120
|
+
"use_errno": (
|
|
12121
|
+
self.subnode_use_errno.makeClone()
|
|
12122
|
+
if self.subnode_use_errno is not None
|
|
12123
|
+
else None
|
|
12124
|
+
),
|
|
12125
|
+
"use_last_error": (
|
|
12126
|
+
self.subnode_use_last_error.makeClone()
|
|
12127
|
+
if self.subnode_use_last_error is not None
|
|
12128
|
+
else None
|
|
12129
|
+
),
|
|
11377
12130
|
}
|
|
11378
12131
|
|
|
11379
12132
|
values.update(self.getDetails())
|
|
@@ -11394,9 +12147,9 @@ class ChildrenHavingNameModeOptionalHandleOptionalUseErrnoOptionalUseLasterrorOp
|
|
|
11394
12147
|
if self.subnode_use_errno is not None:
|
|
11395
12148
|
self.subnode_use_errno.finalize()
|
|
11396
12149
|
del self.subnode_use_errno
|
|
11397
|
-
if self.
|
|
11398
|
-
self.
|
|
11399
|
-
del self.
|
|
12150
|
+
if self.subnode_use_last_error is not None:
|
|
12151
|
+
self.subnode_use_last_error.finalize()
|
|
12152
|
+
del self.subnode_use_last_error
|
|
11400
12153
|
|
|
11401
12154
|
def computeExpressionRaw(self, trace_collection):
|
|
11402
12155
|
"""Compute an expression.
|
|
@@ -11446,17 +12199,17 @@ class ChildrenHavingNameModeOptionalHandleOptionalUseErrnoOptionalUseLasterrorOp
|
|
|
11446
12199
|
|
|
11447
12200
|
if subnode_use_errno is not None:
|
|
11448
12201
|
self.subnode_use_errno.collectVariableAccesses(emit_read, emit_write)
|
|
11449
|
-
|
|
12202
|
+
subnode_use_last_error = self.subnode_use_last_error
|
|
11450
12203
|
|
|
11451
|
-
if
|
|
11452
|
-
self.
|
|
12204
|
+
if subnode_use_last_error is not None:
|
|
12205
|
+
self.subnode_use_last_error.collectVariableAccesses(emit_read, emit_write)
|
|
11453
12206
|
|
|
11454
12207
|
|
|
11455
12208
|
# Assign the names that are easier to import with a stable name.
|
|
11456
|
-
ChildrenExpressionCtypesCdllMixin =
|
|
12209
|
+
ChildrenExpressionCtypesCdllMixin = ChildrenHavingNameModeOptionalHandleOptionalUseErrnoOptionalUseLastErrorOptionalMixin
|
|
11457
12210
|
|
|
11458
12211
|
|
|
11459
|
-
class
|
|
12212
|
+
class ChildrenHavingNameModeOptionalHandleOptionalUseErrnoOptionalUseLastErrorOptionalWinmodeOptionalMixin(
|
|
11460
12213
|
object
|
|
11461
12214
|
):
|
|
11462
12215
|
# Mixins are not allowed to specify slots, pylint: disable=assigning-non-slot
|
|
@@ -11471,7 +12224,7 @@ class ChildrenHavingNameModeOptionalHandleOptionalUseErrnoOptionalUseLasterrorOp
|
|
|
11471
12224
|
mode,
|
|
11472
12225
|
handle,
|
|
11473
12226
|
use_errno,
|
|
11474
|
-
|
|
12227
|
+
use_last_error,
|
|
11475
12228
|
winmode,
|
|
11476
12229
|
):
|
|
11477
12230
|
name.parent = self
|
|
@@ -11493,10 +12246,10 @@ class ChildrenHavingNameModeOptionalHandleOptionalUseErrnoOptionalUseLasterrorOp
|
|
|
11493
12246
|
|
|
11494
12247
|
self.subnode_use_errno = use_errno
|
|
11495
12248
|
|
|
11496
|
-
if
|
|
11497
|
-
|
|
12249
|
+
if use_last_error is not None:
|
|
12250
|
+
use_last_error.parent = self
|
|
11498
12251
|
|
|
11499
|
-
self.
|
|
12252
|
+
self.subnode_use_last_error = use_last_error
|
|
11500
12253
|
|
|
11501
12254
|
if winmode is not None:
|
|
11502
12255
|
winmode.parent = self
|
|
@@ -11523,7 +12276,7 @@ class ChildrenHavingNameModeOptionalHandleOptionalUseErrnoOptionalUseLasterrorOp
|
|
|
11523
12276
|
pass
|
|
11524
12277
|
else:
|
|
11525
12278
|
result.append(value)
|
|
11526
|
-
value = self.
|
|
12279
|
+
value = self.subnode_use_last_error
|
|
11527
12280
|
if value is None:
|
|
11528
12281
|
pass
|
|
11529
12282
|
else:
|
|
@@ -11546,7 +12299,7 @@ class ChildrenHavingNameModeOptionalHandleOptionalUseErrnoOptionalUseLasterrorOp
|
|
|
11546
12299
|
("mode", self.subnode_mode),
|
|
11547
12300
|
("handle", self.subnode_handle),
|
|
11548
12301
|
("use_errno", self.subnode_use_errno),
|
|
11549
|
-
("
|
|
12302
|
+
("use_last_error", self.subnode_use_last_error),
|
|
11550
12303
|
("winmode", self.subnode_winmode),
|
|
11551
12304
|
)
|
|
11552
12305
|
|
|
@@ -11586,12 +12339,12 @@ class ChildrenHavingNameModeOptionalHandleOptionalUseErrnoOptionalUseLasterrorOp
|
|
|
11586
12339
|
|
|
11587
12340
|
return
|
|
11588
12341
|
|
|
11589
|
-
value = self.
|
|
12342
|
+
value = self.subnode_use_last_error
|
|
11590
12343
|
if old_node is value:
|
|
11591
12344
|
if new_node is not None:
|
|
11592
12345
|
new_node.parent = self
|
|
11593
12346
|
|
|
11594
|
-
self.
|
|
12347
|
+
self.subnode_use_last_error = new_node
|
|
11595
12348
|
|
|
11596
12349
|
return
|
|
11597
12350
|
|
|
@@ -11614,21 +12367,29 @@ class ChildrenHavingNameModeOptionalHandleOptionalUseErrnoOptionalUseLasterrorOp
|
|
|
11614
12367
|
|
|
11615
12368
|
values = {
|
|
11616
12369
|
"name": self.subnode_name.makeClone(),
|
|
11617
|
-
"mode":
|
|
11618
|
-
|
|
11619
|
-
|
|
11620
|
-
"handle":
|
|
11621
|
-
|
|
11622
|
-
|
|
11623
|
-
|
|
11624
|
-
|
|
11625
|
-
|
|
11626
|
-
|
|
11627
|
-
|
|
11628
|
-
|
|
11629
|
-
|
|
11630
|
-
|
|
11631
|
-
|
|
12370
|
+
"mode": (
|
|
12371
|
+
self.subnode_mode.makeClone() if self.subnode_mode is not None else None
|
|
12372
|
+
),
|
|
12373
|
+
"handle": (
|
|
12374
|
+
self.subnode_handle.makeClone()
|
|
12375
|
+
if self.subnode_handle is not None
|
|
12376
|
+
else None
|
|
12377
|
+
),
|
|
12378
|
+
"use_errno": (
|
|
12379
|
+
self.subnode_use_errno.makeClone()
|
|
12380
|
+
if self.subnode_use_errno is not None
|
|
12381
|
+
else None
|
|
12382
|
+
),
|
|
12383
|
+
"use_last_error": (
|
|
12384
|
+
self.subnode_use_last_error.makeClone()
|
|
12385
|
+
if self.subnode_use_last_error is not None
|
|
12386
|
+
else None
|
|
12387
|
+
),
|
|
12388
|
+
"winmode": (
|
|
12389
|
+
self.subnode_winmode.makeClone()
|
|
12390
|
+
if self.subnode_winmode is not None
|
|
12391
|
+
else None
|
|
12392
|
+
),
|
|
11632
12393
|
}
|
|
11633
12394
|
|
|
11634
12395
|
values.update(self.getDetails())
|
|
@@ -11649,9 +12410,9 @@ class ChildrenHavingNameModeOptionalHandleOptionalUseErrnoOptionalUseLasterrorOp
|
|
|
11649
12410
|
if self.subnode_use_errno is not None:
|
|
11650
12411
|
self.subnode_use_errno.finalize()
|
|
11651
12412
|
del self.subnode_use_errno
|
|
11652
|
-
if self.
|
|
11653
|
-
self.
|
|
11654
|
-
del self.
|
|
12413
|
+
if self.subnode_use_last_error is not None:
|
|
12414
|
+
self.subnode_use_last_error.finalize()
|
|
12415
|
+
del self.subnode_use_last_error
|
|
11655
12416
|
if self.subnode_winmode is not None:
|
|
11656
12417
|
self.subnode_winmode.finalize()
|
|
11657
12418
|
del self.subnode_winmode
|
|
@@ -11704,10 +12465,10 @@ class ChildrenHavingNameModeOptionalHandleOptionalUseErrnoOptionalUseLasterrorOp
|
|
|
11704
12465
|
|
|
11705
12466
|
if subnode_use_errno is not None:
|
|
11706
12467
|
self.subnode_use_errno.collectVariableAccesses(emit_read, emit_write)
|
|
11707
|
-
|
|
12468
|
+
subnode_use_last_error = self.subnode_use_last_error
|
|
11708
12469
|
|
|
11709
|
-
if
|
|
11710
|
-
self.
|
|
12470
|
+
if subnode_use_last_error is not None:
|
|
12471
|
+
self.subnode_use_last_error.collectVariableAccesses(emit_read, emit_write)
|
|
11711
12472
|
subnode_winmode = self.subnode_winmode
|
|
11712
12473
|
|
|
11713
12474
|
if subnode_winmode is not None:
|
|
@@ -11715,7 +12476,7 @@ class ChildrenHavingNameModeOptionalHandleOptionalUseErrnoOptionalUseLasterrorOp
|
|
|
11715
12476
|
|
|
11716
12477
|
|
|
11717
12478
|
# Assign the names that are easier to import with a stable name.
|
|
11718
|
-
ChildrenExpressionCtypesCdllMixin =
|
|
12479
|
+
ChildrenExpressionCtypesCdllMixin = ChildrenHavingNameModeOptionalHandleOptionalUseErrnoOptionalUseLastErrorOptionalWinmodeOptionalMixin
|
|
11719
12480
|
|
|
11720
12481
|
|
|
11721
12482
|
class ChildrenHavingNamePackageOptionalMixin(object):
|
|
@@ -11790,9 +12551,11 @@ class ChildrenHavingNamePackageOptionalMixin(object):
|
|
|
11790
12551
|
|
|
11791
12552
|
values = {
|
|
11792
12553
|
"name": self.subnode_name.makeClone(),
|
|
11793
|
-
"package":
|
|
11794
|
-
|
|
11795
|
-
|
|
12554
|
+
"package": (
|
|
12555
|
+
self.subnode_package.makeClone()
|
|
12556
|
+
if self.subnode_package is not None
|
|
12557
|
+
else None
|
|
12558
|
+
),
|
|
11796
12559
|
}
|
|
11797
12560
|
|
|
11798
12561
|
values.update(self.getDetails())
|
|
@@ -11963,6 +12726,7 @@ class ChildHavingPMixin(object):
|
|
|
11963
12726
|
|
|
11964
12727
|
# This is generated for use in
|
|
11965
12728
|
# ExpressionOsPathBasename
|
|
12729
|
+
# ExpressionOsPathDirname
|
|
11966
12730
|
|
|
11967
12731
|
def __init__(
|
|
11968
12732
|
self,
|
|
@@ -12046,6 +12810,7 @@ class ChildHavingPMixin(object):
|
|
|
12046
12810
|
|
|
12047
12811
|
# Assign the names that are easier to import with a stable name.
|
|
12048
12812
|
ChildrenExpressionOsPathBasenameMixin = ChildHavingPMixin
|
|
12813
|
+
ChildrenExpressionOsPathDirnameMixin = ChildHavingPMixin
|
|
12049
12814
|
|
|
12050
12815
|
|
|
12051
12816
|
class ChildHavingPackageMixin(object):
|
|
@@ -12397,12 +13162,16 @@ class ChildrenHavingPackageResourceEncodingOptionalErrorsOptionalMixin(object):
|
|
|
12397
13162
|
values = {
|
|
12398
13163
|
"package": self.subnode_package.makeClone(),
|
|
12399
13164
|
"resource": self.subnode_resource.makeClone(),
|
|
12400
|
-
"encoding":
|
|
12401
|
-
|
|
12402
|
-
|
|
12403
|
-
|
|
12404
|
-
|
|
12405
|
-
|
|
13165
|
+
"encoding": (
|
|
13166
|
+
self.subnode_encoding.makeClone()
|
|
13167
|
+
if self.subnode_encoding is not None
|
|
13168
|
+
else None
|
|
13169
|
+
),
|
|
13170
|
+
"errors": (
|
|
13171
|
+
self.subnode_errors.makeClone()
|
|
13172
|
+
if self.subnode_errors is not None
|
|
13173
|
+
else None
|
|
13174
|
+
),
|
|
12406
13175
|
}
|
|
12407
13176
|
|
|
12408
13177
|
values.update(self.getDetails())
|
|
@@ -12872,6 +13641,7 @@ class ChildHavingPathMixin(object):
|
|
|
12872
13641
|
# ExpressionOsPathExists
|
|
12873
13642
|
# ExpressionOsPathIsdir
|
|
12874
13643
|
# ExpressionOsPathIsfile
|
|
13644
|
+
# ExpressionOsPathNormpath
|
|
12875
13645
|
|
|
12876
13646
|
def __init__(
|
|
12877
13647
|
self,
|
|
@@ -12958,6 +13728,7 @@ ChildrenExpressionOsPathAbspathMixin = ChildHavingPathMixin
|
|
|
12958
13728
|
ChildrenExpressionOsPathExistsMixin = ChildHavingPathMixin
|
|
12959
13729
|
ChildrenExpressionOsPathIsdirMixin = ChildHavingPathMixin
|
|
12960
13730
|
ChildrenExpressionOsPathIsfileMixin = ChildHavingPathMixin
|
|
13731
|
+
ChildrenExpressionOsPathNormpathMixin = ChildHavingPathMixin
|
|
12961
13732
|
|
|
12962
13733
|
|
|
12963
13734
|
class ChildHavingPathOptionalMixin(object):
|
|
@@ -13013,9 +13784,9 @@ class ChildHavingPathOptionalMixin(object):
|
|
|
13013
13784
|
"""
|
|
13014
13785
|
|
|
13015
13786
|
values = {
|
|
13016
|
-
"path":
|
|
13017
|
-
|
|
13018
|
-
|
|
13787
|
+
"path": (
|
|
13788
|
+
self.subnode_path.makeClone() if self.subnode_path is not None else None
|
|
13789
|
+
),
|
|
13019
13790
|
}
|
|
13020
13791
|
|
|
13021
13792
|
values.update(self.getDetails())
|
|
@@ -13146,9 +13917,11 @@ class ChildrenHavingPosArgOptionalPairsTupleMixin(object):
|
|
|
13146
13917
|
"""
|
|
13147
13918
|
|
|
13148
13919
|
values = {
|
|
13149
|
-
"pos_arg":
|
|
13150
|
-
|
|
13151
|
-
|
|
13920
|
+
"pos_arg": (
|
|
13921
|
+
self.subnode_pos_arg.makeClone()
|
|
13922
|
+
if self.subnode_pos_arg is not None
|
|
13923
|
+
else None
|
|
13924
|
+
),
|
|
13152
13925
|
"pairs": tuple(v.makeClone() for v in self.subnode_pairs),
|
|
13153
13926
|
}
|
|
13154
13927
|
|
|
@@ -13284,9 +14057,9 @@ class ChildrenHavingRealOptionalImagMixin(object):
|
|
|
13284
14057
|
"""
|
|
13285
14058
|
|
|
13286
14059
|
values = {
|
|
13287
|
-
"real":
|
|
13288
|
-
|
|
13289
|
-
|
|
14060
|
+
"real": (
|
|
14061
|
+
self.subnode_real.makeClone() if self.subnode_real is not None else None
|
|
14062
|
+
),
|
|
13290
14063
|
"imag": self.subnode_imag.makeClone(),
|
|
13291
14064
|
}
|
|
13292
14065
|
|
|
@@ -14284,15 +15057,21 @@ class ChildrenHavingSourceFilenameModeFlagsOptionalDontInheritOptionalOptimizeOp
|
|
|
14284
15057
|
"source": self.subnode_source.makeClone(),
|
|
14285
15058
|
"filename": self.subnode_filename.makeClone(),
|
|
14286
15059
|
"mode": self.subnode_mode.makeClone(),
|
|
14287
|
-
"flags":
|
|
14288
|
-
|
|
14289
|
-
|
|
14290
|
-
|
|
14291
|
-
|
|
14292
|
-
|
|
14293
|
-
|
|
14294
|
-
|
|
14295
|
-
|
|
15060
|
+
"flags": (
|
|
15061
|
+
self.subnode_flags.makeClone()
|
|
15062
|
+
if self.subnode_flags is not None
|
|
15063
|
+
else None
|
|
15064
|
+
),
|
|
15065
|
+
"dont_inherit": (
|
|
15066
|
+
self.subnode_dont_inherit.makeClone()
|
|
15067
|
+
if self.subnode_dont_inherit is not None
|
|
15068
|
+
else None
|
|
15069
|
+
),
|
|
15070
|
+
"optimize": (
|
|
15071
|
+
self.subnode_optimize.makeClone()
|
|
15072
|
+
if self.subnode_optimize is not None
|
|
15073
|
+
else None
|
|
15074
|
+
),
|
|
14296
15075
|
}
|
|
14297
15076
|
|
|
14298
15077
|
values.update(self.getDetails())
|
|
@@ -14625,9 +15404,11 @@ class ChildrenHavingSourceCodeGlobalsArgLocalsArgClosureOptionalMixin(object):
|
|
|
14625
15404
|
"source_code": self.subnode_source_code.makeClone(),
|
|
14626
15405
|
"globals_arg": self.subnode_globals_arg.makeClone(),
|
|
14627
15406
|
"locals_arg": self.subnode_locals_arg.makeClone(),
|
|
14628
|
-
"closure":
|
|
14629
|
-
|
|
14630
|
-
|
|
15407
|
+
"closure": (
|
|
15408
|
+
self.subnode_closure.makeClone()
|
|
15409
|
+
if self.subnode_closure is not None
|
|
15410
|
+
else None
|
|
15411
|
+
),
|
|
14631
15412
|
}
|
|
14632
15413
|
|
|
14633
15414
|
values.update(self.getDetails())
|
|
@@ -18535,12 +19316,16 @@ class ChildrenHavingStringEncodingOptionalErrorsOptionalMixin(object):
|
|
|
18535
19316
|
|
|
18536
19317
|
values = {
|
|
18537
19318
|
"string": self.subnode_string.makeClone(),
|
|
18538
|
-
"encoding":
|
|
18539
|
-
|
|
18540
|
-
|
|
18541
|
-
|
|
18542
|
-
|
|
18543
|
-
|
|
19319
|
+
"encoding": (
|
|
19320
|
+
self.subnode_encoding.makeClone()
|
|
19321
|
+
if self.subnode_encoding is not None
|
|
19322
|
+
else None
|
|
19323
|
+
),
|
|
19324
|
+
"errors": (
|
|
19325
|
+
self.subnode_errors.makeClone()
|
|
19326
|
+
if self.subnode_errors is not None
|
|
19327
|
+
else None
|
|
19328
|
+
),
|
|
18544
19329
|
}
|
|
18545
19330
|
|
|
18546
19331
|
values.update(self.getDetails())
|
|
@@ -18795,12 +19580,14 @@ class ChildrenHavingTypeArgArgsOptionalKwargsOptionalMixin(object):
|
|
|
18795
19580
|
|
|
18796
19581
|
values = {
|
|
18797
19582
|
"type_arg": self.subnode_type_arg.makeClone(),
|
|
18798
|
-
"args":
|
|
18799
|
-
|
|
18800
|
-
|
|
18801
|
-
"kwargs":
|
|
18802
|
-
|
|
18803
|
-
|
|
19583
|
+
"args": (
|
|
19584
|
+
self.subnode_args.makeClone() if self.subnode_args is not None else None
|
|
19585
|
+
),
|
|
19586
|
+
"kwargs": (
|
|
19587
|
+
self.subnode_kwargs.makeClone()
|
|
19588
|
+
if self.subnode_kwargs is not None
|
|
19589
|
+
else None
|
|
19590
|
+
),
|
|
18804
19591
|
}
|
|
18805
19592
|
|
|
18806
19593
|
values.update(self.getDetails())
|
|
@@ -19140,6 +19927,142 @@ class ChildrenHavingTypeNameBasesDictArgMixin(object):
|
|
|
19140
19927
|
ChildrenExpressionBuiltinType3Mixin = ChildrenHavingTypeNameBasesDictArgMixin
|
|
19141
19928
|
|
|
19142
19929
|
|
|
19930
|
+
class ChildrenHavingTypeParamsTupleComputeValueMixin(object):
|
|
19931
|
+
# Mixins are not allowed to specify slots, pylint: disable=assigning-non-slot
|
|
19932
|
+
__slots__ = ()
|
|
19933
|
+
|
|
19934
|
+
# This is generated for use in
|
|
19935
|
+
# ExpressionTypeAlias
|
|
19936
|
+
|
|
19937
|
+
def __init__(
|
|
19938
|
+
self,
|
|
19939
|
+
type_params,
|
|
19940
|
+
compute_value,
|
|
19941
|
+
):
|
|
19942
|
+
assert type(type_params) is tuple
|
|
19943
|
+
|
|
19944
|
+
for val in type_params:
|
|
19945
|
+
val.parent = self
|
|
19946
|
+
|
|
19947
|
+
self.subnode_type_params = type_params
|
|
19948
|
+
|
|
19949
|
+
compute_value.parent = self
|
|
19950
|
+
|
|
19951
|
+
self.subnode_compute_value = compute_value
|
|
19952
|
+
|
|
19953
|
+
def getVisitableNodes(self):
|
|
19954
|
+
"""The visitable nodes, with tuple values flattened."""
|
|
19955
|
+
|
|
19956
|
+
result = []
|
|
19957
|
+
result.extend(self.subnode_type_params)
|
|
19958
|
+
result.append(self.subnode_compute_value)
|
|
19959
|
+
return tuple(result)
|
|
19960
|
+
|
|
19961
|
+
def getVisitableNodesNamed(self):
|
|
19962
|
+
"""Named children dictionary.
|
|
19963
|
+
|
|
19964
|
+
For use in cloning nodes, debugging and XML output.
|
|
19965
|
+
"""
|
|
19966
|
+
|
|
19967
|
+
return (
|
|
19968
|
+
("type_params", self.subnode_type_params),
|
|
19969
|
+
("compute_value", self.subnode_compute_value),
|
|
19970
|
+
)
|
|
19971
|
+
|
|
19972
|
+
def replaceChild(self, old_node, new_node):
|
|
19973
|
+
value = self.subnode_type_params
|
|
19974
|
+
if old_node in value:
|
|
19975
|
+
if new_node is not None:
|
|
19976
|
+
new_node.parent = self
|
|
19977
|
+
|
|
19978
|
+
self.subnode_type_params = tuple(
|
|
19979
|
+
(val if val is not old_node else new_node) for val in value
|
|
19980
|
+
)
|
|
19981
|
+
else:
|
|
19982
|
+
self.subnode_type_params = tuple(
|
|
19983
|
+
val for val in value if val is not old_node
|
|
19984
|
+
)
|
|
19985
|
+
|
|
19986
|
+
return
|
|
19987
|
+
|
|
19988
|
+
value = self.subnode_compute_value
|
|
19989
|
+
if old_node is value:
|
|
19990
|
+
new_node.parent = self
|
|
19991
|
+
|
|
19992
|
+
self.subnode_compute_value = new_node
|
|
19993
|
+
|
|
19994
|
+
return
|
|
19995
|
+
|
|
19996
|
+
raise AssertionError("Didn't find child", old_node, "in", self)
|
|
19997
|
+
|
|
19998
|
+
def getCloneArgs(self):
|
|
19999
|
+
"""Get clones of all children to pass for a new node.
|
|
20000
|
+
|
|
20001
|
+
Needs to make clones of child nodes too.
|
|
20002
|
+
"""
|
|
20003
|
+
|
|
20004
|
+
values = {
|
|
20005
|
+
"type_params": tuple(v.makeClone() for v in self.subnode_type_params),
|
|
20006
|
+
"compute_value": self.subnode_compute_value.makeClone(),
|
|
20007
|
+
}
|
|
20008
|
+
|
|
20009
|
+
values.update(self.getDetails())
|
|
20010
|
+
|
|
20011
|
+
return values
|
|
20012
|
+
|
|
20013
|
+
def finalize(self):
|
|
20014
|
+
del self.parent
|
|
20015
|
+
|
|
20016
|
+
for c in self.subnode_type_params:
|
|
20017
|
+
c.finalize()
|
|
20018
|
+
del self.subnode_type_params
|
|
20019
|
+
self.subnode_compute_value.finalize()
|
|
20020
|
+
del self.subnode_compute_value
|
|
20021
|
+
|
|
20022
|
+
def computeExpressionRaw(self, trace_collection):
|
|
20023
|
+
"""Compute an expression.
|
|
20024
|
+
|
|
20025
|
+
Default behavior is to just visit the child expressions first, and
|
|
20026
|
+
then the node "computeExpression". For a few cases this needs to
|
|
20027
|
+
be overloaded, e.g. conditional expressions.
|
|
20028
|
+
"""
|
|
20029
|
+
|
|
20030
|
+
# First apply the sub-expressions, as they are evaluated before
|
|
20031
|
+
# the actual operation.
|
|
20032
|
+
for count, sub_expression in enumerate(self.getVisitableNodes()):
|
|
20033
|
+
expression = trace_collection.onExpression(sub_expression)
|
|
20034
|
+
|
|
20035
|
+
if expression.willRaiseAnyException():
|
|
20036
|
+
sub_expressions = self.getVisitableNodes()
|
|
20037
|
+
|
|
20038
|
+
wrapped_expression = wrapExpressionWithSideEffects(
|
|
20039
|
+
side_effects=sub_expressions[:count],
|
|
20040
|
+
old_node=sub_expression,
|
|
20041
|
+
new_node=expression,
|
|
20042
|
+
)
|
|
20043
|
+
|
|
20044
|
+
return (
|
|
20045
|
+
wrapped_expression,
|
|
20046
|
+
"new_raise",
|
|
20047
|
+
lambda: "For '%s' the child expression '%s' will raise."
|
|
20048
|
+
% (self.getChildNameNice(), expression.getChildNameNice()),
|
|
20049
|
+
)
|
|
20050
|
+
|
|
20051
|
+
# Then ask ourselves to work on it.
|
|
20052
|
+
return self.computeExpression(trace_collection)
|
|
20053
|
+
|
|
20054
|
+
def collectVariableAccesses(self, emit_read, emit_write):
|
|
20055
|
+
"""Collect variable reads and writes of child nodes."""
|
|
20056
|
+
|
|
20057
|
+
for element in self.subnode_type_params:
|
|
20058
|
+
element.collectVariableAccesses(emit_read, emit_write)
|
|
20059
|
+
self.subnode_compute_value.collectVariableAccesses(emit_read, emit_write)
|
|
20060
|
+
|
|
20061
|
+
|
|
20062
|
+
# Assign the names that are easier to import with a stable name.
|
|
20063
|
+
ChildrenExpressionTypeAliasMixin = ChildrenHavingTypeParamsTupleComputeValueMixin
|
|
20064
|
+
|
|
20065
|
+
|
|
19143
20066
|
class ChildHavingValueMixin(object):
|
|
19144
20067
|
# Mixins are not allowed to specify slots, pylint: disable=assigning-non-slot
|
|
19145
20068
|
__slots__ = ()
|
|
@@ -19371,9 +20294,11 @@ class ChildrenHavingValueOptionalBaseMixin(object):
|
|
|
19371
20294
|
"""
|
|
19372
20295
|
|
|
19373
20296
|
values = {
|
|
19374
|
-
"value":
|
|
19375
|
-
|
|
19376
|
-
|
|
20297
|
+
"value": (
|
|
20298
|
+
self.subnode_value.makeClone()
|
|
20299
|
+
if self.subnode_value is not None
|
|
20300
|
+
else None
|
|
20301
|
+
),
|
|
19377
20302
|
"base": self.subnode_base.makeClone(),
|
|
19378
20303
|
}
|
|
19379
20304
|
|
|
@@ -19537,15 +20462,21 @@ class ChildrenHavingValueOptionalEncodingOptionalErrorsOptionalMixin(object):
|
|
|
19537
20462
|
"""
|
|
19538
20463
|
|
|
19539
20464
|
values = {
|
|
19540
|
-
"value":
|
|
19541
|
-
|
|
19542
|
-
|
|
19543
|
-
|
|
19544
|
-
|
|
19545
|
-
|
|
19546
|
-
|
|
19547
|
-
|
|
19548
|
-
|
|
20465
|
+
"value": (
|
|
20466
|
+
self.subnode_value.makeClone()
|
|
20467
|
+
if self.subnode_value is not None
|
|
20468
|
+
else None
|
|
20469
|
+
),
|
|
20470
|
+
"encoding": (
|
|
20471
|
+
self.subnode_encoding.makeClone()
|
|
20472
|
+
if self.subnode_encoding is not None
|
|
20473
|
+
else None
|
|
20474
|
+
),
|
|
20475
|
+
"errors": (
|
|
20476
|
+
self.subnode_errors.makeClone()
|
|
20477
|
+
if self.subnode_errors is not None
|
|
20478
|
+
else None
|
|
20479
|
+
),
|
|
19549
20480
|
}
|
|
19550
20481
|
|
|
19551
20482
|
values.update(self.getDetails())
|
|
@@ -19700,9 +20631,11 @@ class ChildrenHavingValueFormatSpecOptionalAutoNoneEmptyStrMixin(object):
|
|
|
19700
20631
|
|
|
19701
20632
|
values = {
|
|
19702
20633
|
"value": self.subnode_value.makeClone(),
|
|
19703
|
-
"format_spec":
|
|
19704
|
-
|
|
19705
|
-
|
|
20634
|
+
"format_spec": (
|
|
20635
|
+
self.subnode_format_spec.makeClone()
|
|
20636
|
+
if self.subnode_format_spec is not None
|
|
20637
|
+
else None
|
|
20638
|
+
),
|
|
19706
20639
|
}
|
|
19707
20640
|
|
|
19708
20641
|
values.update(self.getDetails())
|
|
@@ -20009,3 +20942,18 @@ class ChildHavingValuesTupleMixin(object):
|
|
|
20009
20942
|
|
|
20010
20943
|
# Assign the names that are easier to import with a stable name.
|
|
20011
20944
|
ChildrenExpressionStringConcatenationMixin = ChildHavingValuesTupleMixin
|
|
20945
|
+
|
|
20946
|
+
# Part of "Nuitka", an optimizing Python compiler that is compatible and
|
|
20947
|
+
# integrates with CPython, but also works on its own.
|
|
20948
|
+
#
|
|
20949
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
20950
|
+
# you may not use this file except in compliance with the License.
|
|
20951
|
+
# You may obtain a copy of the License at
|
|
20952
|
+
#
|
|
20953
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
20954
|
+
#
|
|
20955
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
20956
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
20957
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
20958
|
+
# See the License for the specific language governing permissions and
|
|
20959
|
+
# limitations under the License.
|