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

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)
int(x=0) -> int or long
int(x, base=10) -> int or long

Convert a number or string to an integer, or return 0 if no arguments
are given.  If x is floating point, the conversion truncates towards zero.
If x is outside the integer range, the function returns a long instead.

If x is not a number or if base is given, then x must be a string or
Unicode object representing an integer literal in the given base.  The
literal can be preceded by '+' or '-' and be surrounded by whitespace.(more...)

src/l/i/libdesktop-agnostic-HEAD/wafadmin/Build.py   libdesktop-agnostic(Download)
		def clean_rec(node):
			for x in node.childs.keys():
				nd=node.childs[x]
				tp=nd.id&3
				if tp==Node.DIR:
		if not self.root:
			Node.Nodu=self.node_class
			self.root=Node.Nodu('',None,Node.DIR)
		if not self.srcnode:
			self.srcnode=self.root.ensure_dir_node_from_path(srcdir)
		self.cache_dir_contents[parent_node.id]=lst
		debug('build: folder contents %r'%lst)
		node_names=set([x.name for x in parent_node.childs.values()if x.id&3 in(Node.FILE,Node.DIR)])
		cache=self.node_sigs[0]
		to_keep=lst&node_names
		for x in to_keep:
			node=parent_node.childs[x]
			if node.id&3==Node.DIR:continue
			for name in to_remove:
				nd=parent_node.childs[name]
				if nd.id&3==Node.DIR:
					for x in nd.childs.values():
						if x.id&3==Node.FILE:

src/h/a/hamster-HEAD/wafadmin/Build.py   hamster(Download)
		def clean_rec(node):
			for x in list(node.childs.keys()):
				nd=node.childs[x]
				tp=nd.id&3
				if tp==Node.DIR:
		if not self.root:
			Node.Nodu=self.node_class
			self.root=Node.Nodu('',None,Node.DIR)
		if not self.srcnode:
			self.srcnode=self.root.ensure_dir_node_from_path(srcdir)

src/p/y/pylibs-HEAD/wafadmin/Build.py   pylibs(Download)
 
				tp = nd.id & 3
				if tp == Node.DIR:
					clean_rec(nd)
				elif tp == Node.BUILD:
		if not self.root:
			Node.Nodu = self.node_class
			self.root = Node.Nodu('', None, Node.DIR)
 
		if not self.srcnode: