Did I find the right examples for you? yes no Crawl my project Python Jobs
All Samples(1) | Call(0) | Derive(0) | Import(1)
dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object's (key, value) pairs dict(iterable) -> new dictionary initialized as if via: d = {} for k, v in iterable: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list. For example: dict(one=1, two=2)
src/p/y/python-packager-0.0.9/pypackager/render.py python-packager(Download)
from datetime import datetime from .base import BasePackager from .constants import RENDERERS from .utils import instantiate_classpath
def __init__(self, settings): super(Renderer, self).__init__(settings) syntax_adapter = RENDERERS[self.settings['template']['syntax']] self.template_engine = instantiate_classpath(syntax_adapter)