redirecting web page

2006-04-11 Thread dai
Hi, I am a newbie about python. Now I am modifying the tinyHTTPProxy to redirect a client's request to our company's webpage. I don't know how can I do this. What I want to do now is to modify the headers, but i still didn't figure out how to do it. Thank you very much -- http://mail.python.org/m

Questions on "import" and "datetime"

2013-06-10 Thread Yunfei Dai
Hi all, I have some questions on "import": 1."from datetime import datetime" works well. But I am confused why "import datetime.datetime" leads to importerror. "from xlrd import open_workbook" could be replaced by "from xlrd.open_workbook" without any problem. The only difference here is that

Re: Questions on "import" and "datetime"

2013-06-12 Thread Yunfei Dai
On Monday, June 10, 2013 7:01:30 PM UTC+2, Zachary Ware wrote: > On Mon, Jun 10, 2013 at 10:37 AM, Yunfei Dai > wrote: > > > Hi all, > > > > Hi Yunfei, > > > > > > > > I have some questions on "import": > > > >

Re: Questions on "import" and "datetime"

2013-06-12 Thread Yunfei Dai
On Monday, June 10, 2013 9:10:16 PM UTC+2, Dave Angel wrote: > On 06/10/2013 01:01 PM, Zachary Ware wrote: > > > On Mon, Jun 10, 2013 at 10:37 AM, Yunfei Dai > > wrote: > > >> Hi all, > > > > > > Hi Yunfei, > > > > > >&g