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

All Samples(7646)  |  Call(7646)  |  Derive(0)  |  Import(0)
L.sort(cmp=None, key=None, reverse=False) -- stable sort *IN PLACE*;
cmp(x, y) -> -1, 0, 1

src/k/a/kamaelia-HEAD/Sketches/MPS/BugReports/FixTests/Kamaelia/Examples/SimpleGraphicalApps/Slideshows/topology_slideshow.py   kamaelia(Download)
        files.append(os.path.join(path,fname))
 
files.sort()
 
Graphline(

src/k/a/kamaelia-HEAD/Sketches/MPS/BugReports/FixTests/Kamaelia/Examples/SimpleGraphicalApps/Slideshows/slideshow.py   kamaelia(Download)
        files.append(os.path.join(path,fname))
 
files.sort()
 
Graphline(

src/k/a/kamaelia-HEAD/Code/Python/Kamaelia/Examples/UsingChassis/PAR/par_slideshow.py   kamaelia(Download)
        files.append(os.path.join(path,fname))
 
files.sort()
 
Pipeline(

src/k/a/kamaelia-HEAD/Code/Python/Kamaelia/Examples/UsingChassis/PAR/par_shutdown.py   kamaelia(Download)
        files.append(os.path.join(path,fname))
 
files.sort()
 
file = "/data/dirac-video/snowboard-jum-352x288x75.dirac.drc"

src/k/a/kamaelia-HEAD/Code/Python/Kamaelia/Examples/SimpleGraphicalApps/Slideshows/topology_slideshow.py   kamaelia(Download)
        files.append(os.path.join(path,fname))
 
files.sort()
 
Graphline(

src/k/a/kamaelia-HEAD/Code/Python/Kamaelia/Examples/SimpleGraphicalApps/Slideshows/slideshow.py   kamaelia(Download)
        files.append(os.path.join(path,fname))
 
files.sort()
 
Graphline(

src/m/e/META-SHARE-HEAD/metashare/repository/supermodel.py   META-SHARE(Download)
        # can be handled and filled before saving this instance for handling
        # the ManyToMany fields...
        _fields_before_sets.sort(key=lambda x: x[2] == REQUIRED, reverse=True)
 
        _many_to_many_fields = []
        _fields_before_sets.extend(_many_to_many_fields)
 
        _fields_before_sets.sort(cmp=lambda x, y: -y[1].endswith('_set'))
 
        for xsd_field, _model_field, _required in _fields_before_sets:

src/s/y/sympy-HEAD/sympy/series/gruntz.py   sympy(Download)
 
    nodes = build_expression_tree(Omega, rewrites)
    Omega.sort(key=lambda x: nodes[x[1]].ht(), reverse=True)
 
    g, _ = Omega[-1]

src/z/c/zc.blist-1.0b2/src/zc/blist/__init__.py   zc.blist(Download)
    def sort(self, cmp=None, key=None, reverse=False):
        vals = list(self)
        vals.sort(cmp=cmp, key=key, reverse=reverse)
        self[:] = vals
 

src/a/p/appscale-HEAD/AppServer/lib/django-1.5/django/contrib/gis/geos/mutable_list.py   appscale(Download)
    def sort(self, cmp=None, key=None, reverse=False):
        "Standard list sort method"
        if key:
            temp = [(key(v),v) for v in self]
            temp.sort(key=lambda x: x[0], reverse=reverse)
            self[:] = [v[1] for v in temp]
        else:
            temp = list(self)
            if cmp is not None:
                temp.sort(cmp=cmp, reverse=reverse)
                temp.sort(cmp=cmp, reverse=reverse)
            else:
                temp.sort(reverse=reverse)
            self[:] = temp
 

Previous  5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13  Next