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/a/gaeframework-2.0.10/google_appengine/lib/graphy/graphy/backends/google_chart_api/util.py gaeframework(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/m/d/mdn-lib-HEAD/packages/jinja2/examples/bench.py mdn-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():
src/c/a/carbon-0.9.10/lib/carbon/conf.py carbon(Download)
defaults = dict(
USER="",
MAX_CACHE_SIZE=float('inf'),
MAX_UPDATES_PER_SECOND=500,
class Settings(dict):
__getattr__ = dict.__getitem__
def __init__(self):
dict.__init__(self)
src/g/o/google-app-engine-HEAD/lib/jinja2-2.6/examples/profile.py google-app-engine(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)]
}
src/g/a/gaesdk-python-HEAD/lib/graphy/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] = ''
src/n/o/noc-0.7(3)/contrib/src/Jinja2/examples/profile.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)]
}
src/g/a/gaesdk-python-HEAD/lib/jinja2/examples/profile.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)]
}
src/m/d/mdn-lib-HEAD/packages/jinja2/examples/profile.py mdn-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)]
}
src/p/o/polinax-HEAD/libs/external_libs/Genshi-0.5.1/examples/bench/bigtable.py polinax(Download)
MakoTemplate = None
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)]
src/s/e/secret-squirrel-lib-HEAD/packages/jinja2/examples/profile.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)]
}
Previous 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 Next