• Facebook
  • Twitter
  • Reddit
  • StumbleUpon
  • Digg
  • email

All Samples(94879)  |  Call(89744)  |  Derive(5127)  |  Import(8)
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/x/8/x84-1.0.4p1/x84/blessings.py   x84(Download)
        # Function 'has_key' has no '_capability_names' member
        capabilities = curses.has_key._capability_names.iteritems()
        self._keymap = dict([(curses.tigetstr(cap).decode('utf8'), keycode)
                             for (keycode, cap) in capabilities
                             if curses.tigetstr(cap) is not None])
        # these (e.g. on_cology or rock_on) so we don't interfere with
        # __getattr__.
        save='sc',
        restore='rc',
 

src/i/s/isotoma.recipe.zope2instance-0.0.6/isotoma/recipe/zope2instance/__init__.py   isotoma.recipe.zope2instance(Download)
                return len(el) == 2 and el or None
 
            rel_storage = dict([
                _split(el) for el in relstorage.splitlines()
                if _split(el) is not None])
 
            opts = dict(
                type=type_,
                db_opts='\n'.join(' ' * 12 + ' '.join((k, v))
                                  for k, v in rel_storage.iteritems()
 
                zeo_authentication = zeo_authentication_template % dict(
                        realm = options.get('zeo-realm', 'ZEO'),
                        username = options.get('zeo-username'),
                        password = options.get('zeo-password'))
 
            storage_snippet = storage_snippet_template % dict(
                blob_storage = blob_storage,
                shared_blob_dir = shared_blob_dir,
                zeo_address = zeo_address,
            os.makedirs(lock_file_dir)
 
        zope_conf = template % dict(instance_home = instance_home,
                                    client_home = client_home,
                                    paths_lines = paths_lines,

src/o/y/oyProjectManager-0.2.5.3/oyProjectManager/config.py   oyProjectManager(Download)
    default_config_values = dict(
 
        database_url = "sqlite:///$OYPROJECTMANAGER_PATH/project_manager.db",
 
        status_list = [

src/g/m/gmond_python_modules-HEAD/couchdb/python_modules/couchdb.py   gmond_python_modules(Download)
 
    descriptions = dict(
        couchdb_couchdb_auth_cache_hits={
            'units': 'hits/s',
            'description': 'Number of authentication cache hits'},

src/p/l/plone.app.cmsui-1.0a2/src/plone/app/cmsui/fileupload.py   plone.app.cmsui(Download)
 
        settings = dict(
            portal_url             = portal_url,
            typeupload             = '',
            context_url            = context.absolute_url(),

src/g/s/gsw-3.0.2/gsw/test/test_profiles.py   gsw(Download)
    #SA_from_SP=('SP', 'p', 'long', 'lat'), BUG on SAAR
    #Sstar_from_SP  TODO
    CT_from_t=('SA', 't', 'p'),
    #
    # basic_thermodynamic_t.py

src/c/o/collective.quickupload-1.5.8/collective/quickupload/browser/quick_upload.py   collective.quickupload(Download)
 
        settings = dict(
            ticket                 = ticket,
            portal_url             = portal_url,
            typeupload             = '',

src/b/a/baruwa-2.0.0/baruwa/model/messages.py   baruwa(Download)
    def tojson(self):
        "Serialize to json"
        return dict(
                    id=self.id,
                    messageid=self.messageid,
            status = _('NS')
        return dict(
                    id=self.id,
                    timestamp=self.timestamp.strftime('%A, %d %b %Y %H:%M:%S %Z'),
                    sascore=self.sascore,

src/b/l/blessings-1.5/blessings/__init__.py   blessings(Download)
        # these (e.g. on_cology or rock_on) so we don't interfere with
        # __getattr__.
        save='sc',
        restore='rc',
 

src/p/y/pyobjc-framework-CoreData-2.5.1/Examples/OutlineEdit/setup.py   pyobjc-framework-CoreData(Download)
 
plist = dict(
    NSMainNibFile="MainMenu",
    CFBundleDocumentTypes=[
        dict(
            CFBundleTypeExtensions=['binary'],
        ),
        dict(
            CFBundleTypeExtensions=['sql'],
            CFBundleTypeMIMETypes=['application/octect-stream'],
            CFBundleTypeName='SQL',
        ),
        dict(
            CFBundleTypeExtensions=['xml'],
            CFBundleTypeMIMETypes=['text/xml'],
            CFBundleTypeName='XML',
    app=["main.py"],
    data_files=["English.lproj"],
    options=dict(py2app=dict(
        plist=plist,
        datamodels=['MyDocument'],

Previous  6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14  Next