Did I find the right examples for you? yes no

All Samples(96562)  |  Call(91283)  |  Derive(5271)  |  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/weblogo-3.3/weblogolib/color.py   weblogo(Download)
 
_std_colors = dict(
    aliceblue = Color(240,248,255),     #f0f8ff
    antiquewhite = Color(250,235,215),     #faebd7
    aqua = Color(0,255,255),     #00ffff

src/p/i/pinky-HEAD/lib/pinky.py   pinky(Download)
def parse_style(arg):
    """Parse a CSS attribute list into a dictionary."""
    lines = (l.strip() for l in arg.split(';'))
    pairs = (l.split(':') for l in lines if l)
    return dict((k.strip(), v.strip()) for k, v in pairs)
    # http://www.w3.org/TR/SVG/types.html#ColorKeywords
    _color_keywords = dict(
        aliceblue=(240, 248, 255),
        antiquewhite=(250, 235, 215),
        aqua=(0, 255, 255),
    ])
 
    _command_classes = dict(M=Moveto, Z=Closepath, L=Lineto, C=Curveto,
                            S=SmoothCurveto, Q=QuadraticBezierCurveto,
                            T=SmoothQuadraticBezierCurveto, A=EllipticalArc)

src/p/d/pdfread-HEAD/trunk/src/pylrs/pylrf.py   pdfread(Download)
LRF_VERSION = 1000  # is 999 for librie? lrf2lrs uses 1000
 
IMAGE_TYPE_ENCODING = dict(GIF=0x14, PNG=0x12, BMP=0x13, JPEG=0x11, JPG=0x11)
 
OBJECT_TYPE_ENCODING = dict(
        PageTree        = 0x01,
}
 
BINDING_DIRECTION_ENCODING = dict(Lr=1, Rl=16)
 
 
TAG_INFO = dict(
        rawtext         = (0, writeRaw),
    def __init__(self, name, *parameters):
        try:
            tagInfo = TAG_INFO[name]
        except KeyError:
            raise LrfError, "tag name %s not recognized" % name

src/p/y/pyelftools-0.20/elftools/dwarf/enums.py   pyelftools(Download)
 
ENUM_DW_TAG = dict(
    DW_TAG_null                     = 0x00,
    DW_TAG_array_type               = 0x01,
    DW_TAG_class_type               = 0x02,
 
ENUM_DW_CHILDREN = dict(
    DW_CHILDREN_no  = 0x00,
    DW_CHILDREN_yes = 0x01,
)
 
 
ENUM_DW_AT = dict(
    DW_AT_null                  = 0x00,
 
ENUM_DW_FORM = dict(
    DW_FORM_null            = 0x00,
    DW_FORM_addr            = 0x01,
    DW_FORM_block2          = 0x03,

src/p/e/periodictable-1.3.6/periodictable/density.py   periodictable(Download)
 
element_densities = dict(
    n=None, # Unless someone wants to look up neutron star densities...
    H=(0.0708, "T=-252.87"),
    He=(0.122, "T=-268.93"),

src/h/g/hgblog-0.7.1/sphinx/config.py   hgblog(Download)
    config_values = dict(
        # general options
        project = ('Python', 'env'),
        copyright = ('', 'html'),
        enable_comments = (False, 'env'),

src/s/p/Sphinx-1.1.3/sphinx/config.py   Sphinx(Download)
    config_values = dict(
        # general options
        project = ('Python', 'env'),
        copyright = ('', 'html'),
        version = ('', 'env'),

src/n/o/noc-0.7(3)/contrib/src/Sphinx/sphinx/config.py   noc(Download)
    config_values = dict(
        # general options
        project = ('Python', 'env'),
        copyright = ('', 'html'),
        version = ('', 'env'),

src/f/l/Flask-FluidDB-0.1/env/lib/python2.6/site-packages/sphinx/config.py   Flask-FluidDB(Download)
    config_values = dict(
        # general options
        project = ('Python', 'env'),
        copyright = ('', 'html'),
        version = ('', 'env'),

src/n/e/Nevow-0.10.0/examples/tests/testexamples.py   Nevow(Download)
from nevow import livetest
 
 
all_suites = dict(
    most_basic=[
live_suites = dict(
    ## Now the fun stuff: The livepage example tests.
liveanimal=[
        ('visit', '/liveanimal/?fresh=true', ''),
        ('assert', 'question', 'I give up. What is the animal, and what question describes it?'),

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