urllib (in thread) never returns

2006-07-16 Thread Kingsley
T'ed connection somehow stays up, leaving the connection somehow dangling; alive, but dead too... I would have thought that some urllib-internal timeout would fix this?! I could watch the thread from another thread, implementing my own timeout... But then (AFAIK) there's no way to term

Re: How to convert a list of strings into a list of variables

2011-08-19 Thread Kingsley Adio
noydb wrote: > How would you convert a list of strings into a list of variables using > the same name of the strings? > > So, ["red", "one", "maple"] into [red, one, maple] > > Thanks for any help! red="a string" one="another string" maple="a file path" old=["red", "one", "maple"] newList=map(ev

Re: Help needed - To get path of a directory

2010-10-13 Thread Kingsley Turner
On 13/10/10 15:26, Bishwarup Banerjee wrote: I want to get the absolute path of the Directory I pass explicitly. Like functionName("\abcd"). I should pass the name of the directory and the function should search for it in the Hard drives and return me the full path of location on the drive. I

GCC process not working as expected when called in Python (3.1.2) subprocess-shell, but OK otherwise

2010-10-14 Thread Kingsley Turner
Hi, I'm using GCC as a pre-processor for a C-like language (EDDL) to handle all the includes, macros, etc. producing a single source file for another compiler. My python code massages the inputs (which arrive in a .zip file), then calls GCC. I have a problem where if I call GCC from my pyt