• 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/w/e/web2py-HEAD/gluon/tools.py   web2py(Download)
                             text or html, '-' * 40))
            elif self.settings.server == 'gae':
                xcc = dict()
                if cc:
                    xcc['cc'] = cc
class Auth(object):
 
    default_settings = dict(
        hideerror=False,
        password_min_length=4,
        # ## these are messages that can be customized
    default_messages = dict(
        login_button='Login',
        register_button='Register',
        password_reset_button='Request reset password',
            cas_domains=[request.env.http_host],
            cas_provider=cas_provider,
            cas_actions=dict(login='login',
                             validate='validate',
                             servicevalidate='serviceValidate',
            if not maps:
                table_user = self.table_user()
                maps = dict((name, lambda v, n=name: v.get(n, None)) for name in
                            table_user.fields if name != 'id'
                            and table_user[name].readable)

src/w/e/web2py-2.1.1/gluon/tools.py   web2py(Download)
            payload=payload_in
 
        sender = sender % dict(sender=self.settings.sender)
        payload['From'] = encoded_or_raw(sender.decode(encoding))
        origTo = to[:]
                                 text or html,'-'*40))
            elif self.settings.server == 'gae':
                xcc = dict()
                if cc:
                    xcc['cc'] = cc
class Auth(object):
 
    default_settings = dict(
        hideerror = False,
        password_min_length = 4,
        # ## these are messages that can be customized
    default_messages = dict(
        login_button = 'Login',
        register_button = 'Register',
        password_reset_button = 'Request reset password',
            cas_domains = [request.env.http_host],
            cas_provider = cas_provider,
            cas_actions = dict(login ='login',
                               validate ='validate',
                               servicevalidate ='serviceValidate',

src/t/a/taskcoach-HEAD/trunk/taskcoach/taskcoachlib/gui/artprovider.py   taskcoach(Download)
    def __init__(self):
        self.__iconCache = dict()
        self.__iconSizeOnCurrentPlatform = 128 if operating_system.isMac() else 16
 
    def getIcon(self, iconTitle): 
 
chooseableItemImages = dict( \
    arrow_down_icon=_('Arrow down'),
    arrow_down_with_status_icon=_('Arrow down with status'),
    arrows_looped_blue_icon=_('Blue arrows looped'),

src/e/p/epydoc-HEAD/src/epydoc/docwriter/html_css.py   epydoc(Download)
_WHITE_COLORS = dict(
    # Defaults:
    body_bg                 =  '#ffffff',
    body_fg                 =  '#000000',
    body_link               =  '#0000ff',
_BLUE_COLORS.update(dict(
    # Body: white text on a dark blue background
    body_bg                 =  '#000070',
    body_fg                 =  '#ffffff',
    body_link               =  '#ffffff',
    ))
 
_WHITE = _set_colors(TEMPLATE, _WHITE_COLORS)
_BLUE = _set_colors(TEMPLATE, _BLUE_COLORS)
 

src/e/p/epydoc-3.0.1/epydoc/docwriter/html_css.py   epydoc(Download)
_WHITE_COLORS = dict(
    # Defaults:
    body_bg                 =  '#ffffff',
    body_fg                 =  '#000000',
    body_link               =  '#0000ff',
_BLUE_COLORS.update(dict(
    # Body: white text on a dark blue background
    body_bg                 =  '#000070',
    body_fg                 =  '#ffffff',
    body_link               =  '#ffffff',
    ))
 
_WHITE = _set_colors(TEMPLATE, _WHITE_COLORS)
_BLUE = _set_colors(TEMPLATE, _BLUE_COLORS)
 

src/w/o/WOFpy-0.1.1-alpha/examples/cbi/cbi_cache_models.py   WOFpy(Download)
#TODO: Andy, please check
param_to_medium_dict = dict(
    air_pressure=wof_base.SampleMediumTypes.AIR,
    air_temperature=wof_base.SampleMediumTypes.AIR,
    chl_concentration=wof_base.SampleMediumTypes.SURFACE_WATER,
#TODO: Andy, please check
param_to_gen_category_dict = dict(
    air_pressure=wof_base.GeneralCategoryTypes.CLIMATE,
    air_temperature=wof_base.GeneralCategoryTypes.CLIMATE,
    chl_concentration=wof_base.GeneralCategoryTypes.WATER_QUALITY,

src/p/d/pdb2pqr-HEAD/trunk/pdb2pqr/contrib/numpy-1.1.0/numpy/f2py/lib/extgen/py_support.py   pdb2pqr(Download)
 
    container_options = dict(
        Content = dict(default='',
                       prefix = template_py_header + '\n',
                       suffix = '\n',
    container_options = CSource.container_options.copy()
    container_options.update(CAPIDefinition=container_options['CDefinition'],
                             PyCModuleCDeclaration=dict(default='<KILLLINE>',
                                                        ignore_empty_content=True),
                             )
 
    component_container_map = dict(
        PyCModuleInitFunction = 'CMainProgram',
;'''
    container_options = dict(
        PyMethodDef = dict(suffix=',', skip_suffix_when_empty=True,separator=',\n',
                           default='<KILLLINE>', use_indent=True, ignore_empty_content=True),
        FunctionSignature = dict(prefix='"\\n\\n:Functions:\\n"\n"  ', skip_prefix_when_empty=True, use_indent=True,

src/p/y/pyun-HEAD/pyunsrc/defaultconfig.py   pyun(Download)
 
config = dict(
    SHOW_HOST_NAME = True,
    SHOW_TOTAL_SCORE = True,
 

src/p/a/passlib-1.6.1/passlib/registry.py   passlib(Download)
    # NOTE: this is a hardcoded list of the handlers built into passlib,
    #       applications should call register_crypt_handler_path()
    apr_md5_crypt = "passlib.handlers.md5_crypt",
    atlassian_pbkdf2_sha1 = "passlib.handlers.pbkdf2",
    bcrypt = "passlib.handlers.bcrypt",

src/f/i/FilterPype-0.3.5/filterpype/filter_factory.py   FilterPype(Download)
        # Maintain the list in alphabetical order, by name.
        class_map = dict(
            attribute_change_detection = df.AttributeChangeDetection,
            attribute_extractor     = df.AttributeExtractor,
            batch                   = df.Batch,
        # store global vars in self.essentials. These are available to
        # any filters that have defined the var as essential.
        self.essentials = dict(comparison='equals',  # For branch_if filter
                               )
        if self.__class__.abstract_class:
    def _apply_class_map(self, class_map):
        # ROBDOC: What is this method actually doing?
        for key, _class in class_map.iteritems():
            try:
                self.factory_dict[key] = dict(_class=_class)
            except AttributeError:
                self.factory_dict = {}
                self.factory_dict[key] = dict(_class=_class)                
            param_dict_or_ftype + ''
            ftype = param_dict_or_ftype
            param_dict = dict(ftype=ftype)
        except TypeError:
            param_dict = param_dict_or_ftype        

Previous  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next