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

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

        def new_list(node, iterable=()):
    elts = _new_constant_list(node, iterable)
    return new_list_elts(node, elts)
        


src/a/s/astoptimizer-0.6/astoptimizer/optimizer.py   astoptimizer(Download)
 
from astoptimizer import UNSET
from astoptimizer.ast_tools import (
    copy_lineno,
    new_constant, new_literal, new_call, new_pass,
                else:
                    # {3, 1, 2} => [1, 2, 3]
                    return new_list(node, literal)
 
    def literal_to_type(self, node, literal, to_type):