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/g/o/google-app-engine-HEAD/google/appengine/_internal/graphy/backends/google_chart_api/util.py google-app-engine(Download)
# TODO: Find a better representation LONG_NAMES = dict( client_id='chc', size='chs', chart_type='cht',
""" Used for parameters which involve joining multiple values.""" JOIN_DELIMS = dict( data=',', color=',', line_style='|',
for key, val in args.items():
if val:
out[key] = StrJoin(JOIN_DELIMS[key], val)
else:
out[key] = ''
src/o/d/odls.client-0.1/src/odls/client/configuration.py odls.client(Download)
DEFAULTS = dict(
# SERVER related
SERVER_URL = "",
TIMEOUT=3,
ODLS_USERNAME="",
#: Dictionary of defaults for commandline options.
STANDARD_DEFAULTS = dict(
verbose = False,
quiet = False,
configfile = 'indexer.ini',
"""
read = self.read(files)
result = dict()
for name, section, type in self._option_settings:
try:
result[name] = val
# We have to handle key vars separately...
keyvars = dict()
if self.has_section('ODLS_VARS'):
for option in self.options('ODLS_VARS'):
def __init__(self, *args, **kw):
if 'version' not in kw.keys():
kw.update(dict(version=VERSION))
result = super(ODLSOptionParser, self).__init__(*args, **kw)
self.add_option("-v", "--verbose",
src/p/l/plone.recipe.zope2instance-4.2.10/src/plone/recipe/zope2instance/__init__.py plone.recipe.zope2instance(Download)
if http_address:
http_address = http_server_template % dict(
http_address=http_address,
http_force_connection_close=http_force_connection_close,
http_fast_listen=http_fast_listen)
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,
src/p/y/pyobjc-framework-Automator-2.5.1/Examples/Get Buddy Info/setup.py pyobjc-framework-Automator(Download)
infoPlist = dict(
AMAccepts=dict(
Container='List',
Optional=False,
AMCanShowWhenRun = True,
AMCategory = 'iChat',
AMDefaultParameters = dict(),
AMDescription = dict(
AMDAlert='iChat must be running for this action to work properly.',
AMName='Get Buddy Info',
AMProvides=dict(
Container='List',
Types=[
'com.apple.cocoa.string'
src/g/a/gaesdk-python-HEAD/lib/jinja2/examples/bench.py gaesdk-python(Download)
context = {
'page_title': 'mitsuhiko\'s benchmark',
'table': [dict(a=1,b=2,c=3,d=4,e=5,f=6,g=7,h=8,i=9,j=10) for x in range(1000)]
}
</body>
</html>\
""", searchList=[dict(context)])
def test_cheetah():
</html>\
""", 'spitfire_tmpl', spitfire_optimizer, {'enable_filters': False})
spitfire_context = dict(context, **{'cgi': cgi})
def test_spitfire():
</html>\
""")
chameleon_context = dict(context)
chameleon_context['sections'] = [
('index.html', 'Index'),
</html>\
""", parser=language.Parser())
chameleon_genshi_context = dict(context)
chameleon_genshi_context['sections'] = [
('index.html', 'Index'),
src/n/o/noc-0.7(3)/contrib/src/Jinja2/examples/bench.py noc(Download)
context = {
'page_title': 'mitsuhiko\'s benchmark',
'table': [dict(a=1,b=2,c=3,d=4,e=5,f=6,g=7,h=8,i=9,j=10) for x in range(1000)]
}
</body>
</html>\
""", searchList=[dict(context)])
def test_cheetah():
</html>\
""", 'spitfire_tmpl', spitfire_optimizer, {'enable_filters': False})
spitfire_context = dict(context, **{'cgi': cgi})
def test_spitfire():
src/g/o/google-app-engine-HEAD/lib/graphy/graphy/backends/google_chart_api/util.py google-app-engine(Download)
# TODO: Find a better representation LONG_NAMES = dict( client_id='chc', size='chs', chart_type='cht',
""" Used for parameters which involve joining multiple values.""" JOIN_DELIMS = dict( data=',', color=',', line_style='|',
for key, val in args.items():
if val:
out[key] = StrJoin(JOIN_DELIMS[key], val)
else:
out[key] = ''
src/s/e/secret-squirrel-lib-HEAD/packages/jinja2/examples/bench.py secret-squirrel-lib(Download)
context = {
'page_title': 'mitsuhiko\'s benchmark',
'table': [dict(a=1,b=2,c=3,d=4,e=5,f=6,g=7,h=8,i=9,j=10) for x in range(1000)]
}
</body>
</html>\
""", searchList=[dict(context)])
def test_cheetah():
</html>\
""", 'spitfire_tmpl', spitfire_optimizer, {'enable_filters': False})
spitfire_context = dict(context, **{'cgi': cgi})
def test_spitfire():
</html>\
""")
chameleon_context = dict(context)
chameleon_context['sections'] = [
('index.html', 'Index'),
</html>\
""", parser=language.Parser())
chameleon_genshi_context = dict(context)
chameleon_genshi_context['sections'] = [
('index.html', 'Index'),
src/l/a/latimes-appengine-template-0.022/appengine_template/google_appengine/lib/graphy/graphy/backends/google_chart_api/util.py latimes-appengine-template(Download)
# TODO: Find a better representation LONG_NAMES = dict( client_id='chc', size='chs', chart_type='cht',
""" Used for parameters which involve joining multiple values.""" JOIN_DELIMS = dict( data=',', color=',', line_style='|',
for key, val in args.items():
if val:
out[key] = StrJoin(JOIN_DELIMS[key], val)
else:
out[key] = ''
src/g/a/gaesdk-python-HEAD/google/appengine/_internal/graphy/backends/google_chart_api/util.py gaesdk-python(Download)
# TODO: Find a better representation LONG_NAMES = dict( client_id='chc', size='chs', chart_type='cht',
""" Used for parameters which involve joining multiple values.""" JOIN_DELIMS = dict( data=',', color=',', line_style='|',
for key, val in args.items():
if val:
out[key] = StrJoin(JOIN_DELIMS[key], val)
else:
out[key] = ''
Previous 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 Next