Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(34)  |  Call(23)  |  Derive(0)  |  Import(11)

        def makeStatementsSequence(statements, allow_none, source_ref):
    if allow_none:
        statements = tuple(
            statement
            for statement in
            statements
            if statement is not None
        )

    if statements:
        return StatementsSequence(
            statements = mergeStatements(statements),
            source_ref = source_ref
        )
    else:
        return None
        


src/n/u/Nuitka-HEAD/nuitka/tree/ReformulationLoopStatements.py   Nuitka(Download)
)
 
from .Helpers import (
    makeStatementsSequenceFromStatement,
    makeStatementsSequence,
 
    handler_body = makeStatementsSequence(
        statements = statements,
        allow_none = False,
        source_ref = source_ref
 
    loop_body = makeStatementsSequence(
        statements = statements,
        allow_none = True,
        source_ref = source_ref
    # the loop if it fails.
    loop_body = makeStatementsSequence(
        statements = (
            StatementConditional(
                condition = buildNode(provider, node.test, source_ref),

src/n/u/Nuitka-HEAD/nuitka/tree/ReformulationTryExceptStatements.py   Nuitka(Download)
 
 
from .Helpers import(
    makeStatementsSequenceFromStatement,
    makeStatementsSequence,
 
        handler_body = makeStatementsSequence(
            statements = statements,
            allow_none = True,
            source_ref = source_ref

src/n/u/Nuitka-0.5.1.5/nuitka/tree/ReformulationLoopStatements.py   Nuitka(Download)
)
 
from .Helpers import (
    makeStatementsSequenceFromStatement,
    makeStatementsSequence,
 
    handler_body = makeStatementsSequence(
        statements = statements,
        allow_none = False,
        source_ref = source_ref
 
    loop_body = makeStatementsSequence(
        statements = statements,
        allow_none = True,
        source_ref = source_ref
    # the loop if it fails.
    loop_body = makeStatementsSequence(
        statements = (
            StatementConditional(
                condition = buildNode( provider, node.test, source_ref ),

src/n/u/Nuitka-HEAD/nuitka/tree/ReformulationClasses.py   Nuitka(Download)
from nuitka.nodes.ParameterSpecs import ParameterSpec
 
from .Helpers import (
    makeStatementsSequenceFromStatement,
    makeSequenceCreationOrConstant,
 
    body = makeStatementsSequence(
        statements = statements,
        allow_none = True,
        source_ref = source_ref
 
    body = makeStatementsSequence(
        statements = statements,
        allow_none = True,
        source_ref = source_ref

src/n/u/Nuitka-0.5.1.5/nuitka/tree/ReformulationClasses.py   Nuitka(Download)
from nuitka.nodes.ParameterSpecs import ParameterSpec
 
from .Helpers import (
    makeStatementsSequenceFromStatement,
    makeSequenceCreationOrConstant,
 
    body = makeStatementsSequence(
        statements = statements,
        allow_none = True,
        source_ref = source_ref
 
    body = makeStatementsSequence(
        statements = statements,
        allow_none = True,
        source_ref = source_ref

src/n/u/Nuitka-0.5.1.5/nuitka/tree/ReformulationTryExceptStatements.py   Nuitka(Download)
 
 
from .Helpers import (
    makeStatementsSequence,
    buildStatementsNode,
        handler.setExceptionBranch(
            makeStatementsSequence(
                statements = statements,
                allow_none = True,
                source_ref = source_ref
 
        handler_body = makeStatementsSequence(
            statements = statements,
            allow_none = True,
            source_ref = source_ref

src/n/u/Nuitka-HEAD/nuitka/tree/ReformulationWithStatements.py   Nuitka(Download)
from .ReformulationAssignmentStatements import buildAssignmentStatements
 
from .Helpers import (
    makeStatementsSequenceFromStatement,
    makeStatementsSequence,
 
    with_body = makeStatementsSequence(
        statements = statements,
        allow_none = True,
        source_ref = source_ref

src/n/u/Nuitka-0.5.1.5/nuitka/tree/ReformulationWithStatements.py   Nuitka(Download)
from .ReformulationAssignmentStatements import buildAssignmentStatements
 
from .Helpers import (
    makeStatementsSequenceFromStatement,
    makeStatementsSequence,
 
    with_body = makeStatementsSequence(
        statements = statements,
        allow_none = True,
        source_ref = source_ref

src/n/u/Nuitka-HEAD/nuitka/tree/ReformulationExecStatements.py   Nuitka(Download)
from nuitka.nodes.StatementNodes import StatementsSequence
 
from .Helpers import (
    makeStatementsSequenceFromStatement,
    makeStatementsSequence,
            source_ref = source_ref
        ),
        makeStatementsSequence(pre_statements, False, source_ref),
        makeStatementsSequence(post_statements, False, source_ref)
    )

src/n/u/Nuitka-HEAD/nuitka/tree/ReformulationComparisonExpressions.py   Nuitka(Download)
from .ReformulationBooleanExpressions import buildAndNode
 
from .Helpers import (
    makeStatementsSequence,
    buildNode,
 
            right = ExpressionTryFinally(
                tried       = makeStatementsSequence(tried, False, source_ref),
                final       = makeStatementsSequence(final, False, source_ref),
                expression  = ExpressionTempVariableRef(

  1 | 2  Next