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/d/a/DataNormalizer-0.2/DataNormalizer/client/query.py   DataNormalizer(Download)
__author__ = 'pav'
from DataNormalizer.core.agents import ImageAgent
from DataNormalizer.utils.helpers import SQL_DUMPS, QUERY, PathLess
from mediahandler.Agents import QualityDrop
 
 
    sock = open(sqlfile, "w")
    sock.write(QUERY["region"]% (str(a.region["id"]), a.region["region"],a.region["date"],a.region["desc"],))
    sock.write("\n\n")
    for i in a.wide_set:
        sock.write(QUERY["geoimage"]%(i[4], i[0], i[3], "%s %s"% (str(i[2]), str(i[1])) ,i[7], i[6], i[5], a.region["id"]) + "\n")
    for i in a.tele_set:
        sock.write(QUERY["geoimage"]%(i[4], i[0], i[3], "%s %s"% (str(i[2]), str(i[1])) ,i[7], i[6], i[5], a.region["id"]) + "\n")