On 05/14/2011 03:49 AM, ian douglas wrote:
for i in giant_list:
if i[0]:
if i[1]:
mc.set(i[0], i[1])
Until Alan comes with a more round answer, I'd suggest something along
the lines
On 05/13/2011 05:03 PM, Alan Gauld wrote:
As I say, just some thoughts,
I *am* curious, Alan, whether you or anyone else on the list are able to
help me make this a little more efficient:
cur.execute("SELECT short_url,long_url FROM short_urls")
giant_list = c
On 05/13/2011 05:03 PM, Alan Gauld wrote:
How do you know they are going to stdout? Are you sure
they aren't going to stderr and stderrr is not mapped to stdout
(usually the default). Have you tried redirecting stderr to a
file for example?
As I say, just some thoughts,
Thanks for your though
"ian douglas" wrote
outputting what appears to be an apache-style log to STDOUT, but the
logging.debug or logging.info calls I make in the code are also
going to
STDOUT despite my attempt to use logging.basicConfig() overrides and
setting a filename, etc.
I don;t know anything about BaseHT
Hey folks,
I'm rewriting a short url processor for my job. I had originally written
it as a multi-threaded Perl script, which works, but has socket problems
causing memory leaks. Since I'm rebuilding it to use memcache, and since
I was learning Python outside of work anyway, figured I'd rewrit