• 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/s/wsgiform-0.3/wsgiform/validators.py   wsgiform(Download)
}
 
patterns = dict((k, re.compile(v)) for k, v in _patterns.iteritems())
 
def getvalidator(chain):
 
# Registry of validators
validators = dict(members=ismember, range=inrange, ascii=isascii,
    unicode=isunicode, number=isnumber, float=isfloat, alpha=isalpha,
    alphanum=isalphanum, space=isspace, cap=istitle, upper=isupper,

src/t/d/tdelusion-HEAD/trunk/tdgl/bodypart.py   tdelusion(Download)
class StickMan(BodyPart):
    _default_geom = dict(pos=(0.0,0.0,0.0), angle=0.0,
        #dimensions
        hipZ=0.5, hipY=0.1, thighZ=0.25, shinZ=0.25, footX=0.1,
        waistZ=0.0, torsoZ=0.5, shoulderY=0.2, headZ=0.2,
        headAZ=0.0,
        )
    _default_style = dict(colour=(1,1,1,1), shininess=64)
    _style_attributes = ('colour','shininess')
 

src/n/i/nipype-0.7.0/nipype/interfaces/freesurfer/tests/test_preprocess.py   nipype(Download)
def test_applyvoltransform():
    input_map = dict(args = dict(argstr='%s',),
                     environ = dict(),
                     fs_target = dict(xor=('target_file', 'tal', 'fs_target'),mandatory=True,requires=['reg_file'],argstr='--fstarg',),
                     fsl_reg_file = dict(xor=('reg_file', 'fsl_reg_file', 'xfm_reg_file', 'reg_header', 'subject'),argstr='--fsl %s',mandatory=True,),

src/p/y/pyobjc-framework-Cocoa-2.5.1/Examples/AppKit/PyObjCLauncher/PreferencesWindowController.py   pyobjc-framework-Cocoa(Download)
    def fileSettingsAsDict(self):
        return dict(
            interpreter=self.interpreter.stringValue(),
            honourhashbang=self.honourhashbang.state(),
            debug=self.debug.state(),

src/p/y/pyobjc-framework-Cocoa-2.5.1/Examples/AppKit/PyObjCLauncher/MyDocument.py   pyobjc-framework-Cocoa(Download)
    def fileSettingsAsDict(self):
        return dict(
            interpreter=self.interpreter.stringValue(),
            honourhashbang=self.honourhashbang.state(),
            debug=self.debug.state(),

src/n/i/NiPypeold-HEAD/nipype/interfaces/freesurfer/tests/test_preprocess.py   NiPypeold(Download)
def test_applyvoltransform():
    input_map = dict(args = dict(argstr='%s',),
                     environ = dict(),
                     fs_target = dict(xor=('target_file', 'tal', 'fs_target'),mandatory=True,requires=['reg_file'],argstr='--fstarg',),
                     fsl_reg_file = dict(xor=('reg_file', 'fsl_reg_file', 'xfm_reg_file', 'reg_header', 'subject'),argstr='--fsl %s',mandatory=True,),

src/y/t/yt-2.5/yt/config.py   yt(Download)
 
ytcfgDefaults = dict(
    serialize = 'True',
    onlydeserialize = 'False',
    timefunctions = 'False',

src/e/p/epydoc-HEAD/src/epydoc/cli.py   epydoc(Download)
 
DEFAULT_TARGET = dict(
    html='html', latex='latex', dvi='api.dvi', ps='api.ps',
    pdf='api.pdf', pickle='api.pickle')
 
def option_defaults():
    return dict(
        actions=[], show_frames=True, docformat=DEFAULT_DOCFORMAT, 

src/g/o/google-app-engine-HEAD/lib/jinja2-2.6/examples/bench.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)]
}
 
  </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/v/e/VectorDict-1.0.0/example/stat.py   VectorDict(Download)
 
        json = dict(
            date = "%s" % date.today(),
            name = self.package_name,
            first_upload = '%s'  % self.first_upload,

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