def is_prime0(number):
""" requires enough primes in global list primes """
for n in primes:
...
Python On isprime
by Tony Veijalainen,
May 16, 2011 12:53
Python On Classtemplate
by 0116 cum swallowing amateur,
May 16, 2011 09:58
Three may keep a secret if ...
storeList = dom.select("//table/tr/td[@width='642']/table/tr/td[@width='180']/text()").extract() #store names
addressHTML = dom.select("//table/tr/td[@width='642']/table/tr/td[@class='tableitem']").extract() #store addresses, contains HTML so we need to parse out the actual address
...
Python On Merging two addresses into ...
by dirtybit,
May 01, 2011 21:50
You can use built-in zip fu...
storeList = dom.select("//table/tr/td[@width='642']/table/tr/td[@width='180']/text()").extract() #store names
addressHTML = dom.select("//table/tr/td[@width='642']/table/tr/td[@class='tableitem']").extract() #store addresses, contains HTML so we need to parse out the actual address
...
Python On Merging two addresses into ...
by dirtybit,
May 01, 2011 21:49
You can use built-in zip fu...
#!/usr/bin/env python from itertools import combinations, product, imap, chain ...
Python On Find All Combinations of 2 ...
by jpkotta,
April 25, 2011 23:25
I hope I understood your pr...
#!/usr/bin/env python from itertools import combinations, product, imap, chain ...
Python On Find All Combinations of 2 ...
by jpkotta,
April 25, 2011 23:25
I hope I understood your pr...
#!/usr/bin/env python from itertools import combinations, product, imap, chain ...
Python On Find All Combinations of 2 ...
by jpkotta,
April 25, 2011 23:24
I hope I understood your pr...
The primitive version with ...