Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(20)  |  Call(18)  |  Derive(0)  |  Import(2)
Combine multiple dicts.

>>> (combined({'a': 'foo'}, {'b': 'bar'})
...  == {'a': 'foo', 'b': 'bar'})
True

        def combined(*dicts):
    """
    Combine multiple dicts.
    
    >>> (combined({'a': 'foo'}, {'b': 'bar'})
    ...  == {'a': 'foo', 'b': 'bar'})
    True
    """
    result = {}
    for d in dicts:
        result.update(d)
    return result
        


src/m/a/MapProxy-1.6.0/mapproxy/config/spec.py   MapProxy(Download)
from mapproxy.util.ext.dictspec.validator import validate, ValidationError
from mapproxy.util.ext.dictspec.spec import one_of, anything, number
from mapproxy.util.ext.dictspec.spec import recursive, required, type_spec, combined
 
 
 
source_commons = combined(
    scale_hints,
    {
        'concurrent_requests': int(),
    'sources': {
        anything(): type_spec('type', {
            'wms': combined(source_commons, {
                'wms_opts': {
                    'version': str(),
                    'featureinfo_xslt': str(),
                },
                'image': combined(image_opts, {
                    'opacity':number(),
                    'transparent_color': one_of(str(), [number()]),
                }
            }),
            'mapserver': combined(source_commons, {
                    'wms_opts': {
                        'version': str(),

src/m/a/mapproxy-HEAD/mapproxy/config/spec.py   mapproxy(Download)
from mapproxy.util.ext.dictspec.validator import validate, ValidationError
from mapproxy.util.ext.dictspec.spec import one_of, anything, number
from mapproxy.util.ext.dictspec.spec import recursive, required, type_spec, combined
 
 
 
source_commons = combined(
    scale_hints,
    {
        'concurrent_requests': int(),
    'sources': {
        anything(): type_spec('type', {
            'wms': combined(source_commons, {
                'wms_opts': {
                    'version': str(),
                    'featureinfo_xslt': str(),
                },
                'image': combined(image_opts, {
                    'opacity':number(),
                    'transparent_color': one_of(str(), [number()]),
                }
            }),
            'mapserver': combined(source_commons, {
                    'wms_opts': {
                        'version': str(),