Did I find the right examples for you? yes no Crawl my project Python Jobs
All Samples(589) | Call(589) | Derive(0) | Import(0)
L.count(value) -> integer -- return number of occurrences of value
src/g/a/gae-twitter-oauth-example-HEAD/werkzeug/datastructures.py gae-twitter-oauth-example(Download)
def __call__(self, etag=None, data=None, include_weak=False): if [etag, data].count(None) != 1: raise TypeError('either tag or data required, but at least one') if etag is None: etag = generate_etag(data)
src/f/o/fos-legacy-HEAD/examples/labeler.py fos-legacy(Download)
print 'P' id=self.picking_virtuals(symbol,modifiers) if prev_selected.count(id)==0: self.selected.append(id) ncolor=len(self.virtuals[id])*(255,0,0,255) self.virtuals_list[id].colors=ncolor if prev_selected.count(id)==1:
src/u/n/unknown-horizons-HEAD/horizons/util/python/weaklist.py unknown-horizons(Download)
def count(self, value): return list.count(self, weakref.ref(value)) def index(self, value, *args): return list.index(self, weakref.ref(value), *args)
src/e/v/everest-1.0b2dev/everest/utils.py everest(Download)
def count(self, value): return list.count(self, self.__get_weakref(value)) def index(self, value): return list.index(self, self.__get_weakref(value))
src/e/v/everest-HEAD/everest/utils.py everest(Download)
def count(self, value): return list.count(self, self.__get_weakref(value)) def index(self, value): return list.index(self, self.__get_weakref(value))
src/p/d/pdfrw-0.1/pdfrw/objects/pdfarray.py pdfrw(Download)
def count(self, item): self._resolve() return list.count(self, item) def index(self, item): self._resolve()
src/f/l/flatland-fork-0.1.post2.dev128296736/flatland/schema/containers.py flatland-fork(Download)
if not isinstance(value, Element): value = self.member_schema(value=value) return list.count(self, value) def __contains__(self, value):
src/f/l/flatland-HEAD/flatland/schema/containers.py flatland(Download)
if not isinstance(value, Element): value = self.member_schema(value=value) return list.count(self, value) def __contains__(self, value):
src/p/y/pylaf-0.3.2/src/pylaf/utils/core/weakvaluelist.py pylaf(Download)
def count(self,x): return list.count(self, weakref.ref(x)) def append(self,obj): '''objへの弱参照をリストへ追加する''' list.append(self, weakref.ref(obj))
src/p/s/psage-HEAD/psage/modform/maass/mysubgroup.py psage(Download)
vr=dict() for A in reps: if(A[1 ,0 ]<>0 and v.count(Cusp(A[0 ,0 ],A[1 ,0 ]))==0 ): c=Cusp(A[0 ,0 ],A[1 ,0 ]) v.append(c) elif(v.count(Cusp(infinity))==0 ):
vr[c]=A # Reorder so that Infinity and 0 are first if(v.count(Cusp(0 ))>0 ): v.remove(Cusp(0 )); v.remove(Cusp(infinity)) v.append(Cusp(0 )); v.append(Cusp(infinity))
try: for V in cl: if((A<>V and A*V**-1 in G) or cl.count(A)>0 ): raise StopIteration() cl.append(A)
try: for W in cl: if( (B*W**-1 in G) or cl.count(B)>0 ): raise StopIteration() cl.append(B)
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 Next