PPysolate SpineREAD THE CODE · UNDERSTAND THE SYSTEM
课程与章节
源码索引 / CURRENT IMPLEMENTATION

docs/deep/examples/ast/freshname/after.ast.txt

46 行 · 点击行号可定位;函数链接随声明位置更新,不手填行号。

Module(
  body=[
    Assign(
      targets=[
        Name(id='_spine_prepare', ctx=Store())],
      value=Constant(value='user value')),
    Assign(
      targets=[
        Name(id='_spine_future', ctx=Store())],
      value=Call(
        func=Name(id='_spine_prepare_', ctx=Load()),
        args=[
          Lambda(
            args=arguments(
              posonlyargs=[],
              args=[],
              kwonlyargs=[],
              kw_defaults=[],
              defaults=[]),
            body=Tuple(
              elts=[
                Constant(value='lookup'),
                Dict(
                  keys=[
                    Constant(value='key')],
                  values=[
                    Constant(value='book')])],
              ctx=Load()))],
        keywords=[])),
    Assign(
      targets=[
        Name(id='a', ctx=Store())],
      value=Call(
        func=Name(id='_spine_resolve', ctx=Load()),
        args=[
          Name(id='_spine_future', ctx=Load()),
          Constant(value='lookup')],
        keywords=[
          keyword(
            arg='key',
            value=Constant(value='book'))])),
    Assign(
      targets=[
        Name(id='result', ctx=Store())],
      value=Name(id='_spine_prepare', ctx=Load()))],
  type_ignores=[])