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

All Samples(14)  |  Call(8)  |  Derive(0)  |  Import(6)

        def extractDocFromBody(node):
    # Work around ast.get_docstring breakage.
    if len( node.body ) > 0 and getKind( node.body[0] ) == "Expr" and getKind( node.body[0].value ) == "Str":
        return node.body[1:], node.body[0].value.s
    else:
        return node.body, None
        


src/n/u/Nuitka-HEAD/nuitka/tree/ReformulationFunctionStatements.py   Nuitka(Download)
from nuitka.nodes.AssignNodes import StatementAssignmentVariable
 
from .Helpers import (
    makeStatementsSequenceFromStatement,
    makeDictCreationOrConstant,
    source_ref = source_ref.getExecReference( False )
 
    function_statements, function_doc = extractDocFromBody( node )
 
    function_body = ExpressionFunctionBody(

src/n/u/Nuitka-0.5.1.5/nuitka/tree/ReformulationFunctionStatements.py   Nuitka(Download)
from nuitka.nodes.AssignNodes import StatementAssignmentVariable
 
from .Helpers import (
    makeStatementsSequenceFromStatement,
    makeDictCreationOrConstant,
    source_ref = source_ref.getExecReference( False )
 
    function_statements, function_doc = extractDocFromBody( node )
 
    function_body = ExpressionFunctionBody(

src/n/u/Nuitka-HEAD/nuitka/tree/Building.py   Nuitka(Download)
 
# Some helpers.
from .Helpers import (
    makeStatementsSequenceOrStatement,
    makeSequenceCreationOrConstant,
                created_node.lineno += line_offset
 
    body, doc = extractDocFromBody(body)
 
    result = buildStatementsNode(

src/n/u/Nuitka-0.5.1.5/nuitka/tree/Building.py   Nuitka(Download)
 
# Some helpers.
from .Helpers import (
    makeStatementsSequenceOrStatement,
    makeSequenceCreationOrConstant,
                created_node.lineno += line_offset
 
    body, doc = extractDocFromBody( body )
 
    result = buildStatementsNode(

src/n/u/Nuitka-HEAD/nuitka/tree/ReformulationClasses.py   Nuitka(Download)
from nuitka.nodes.ParameterSpecs import ParameterSpec
 
from .Helpers import (
    makeStatementsSequenceFromStatement,
    makeSequenceCreationOrConstant,
    # This function is the Python3 special case with special re-formulation as
    # according to developer manual.
    class_statements, class_doc = extractDocFromBody(node)
 
    # We need a scope for the temporary variables, and they might be closured.
def _buildClassNode2(provider, node, source_ref):
    class_statements, class_doc = extractDocFromBody(node)
 
    # This function is the Python2 special case with special re-formulation as
    # according to developer manual.

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,
    # This function is the Python3 special case with special re-formulation as
    # according to developer manual.
    class_statements, class_doc = extractDocFromBody(node)
 
    # We need a scope for the temporary variables, and they might be closured.
def _buildClassNode2(provider, node, source_ref):
    class_statements, class_doc = extractDocFromBody(node)
 
    # This function is the Python2 special case with special re-formulation as
    # according to developer manual.