http status response

2005-04-15 Thread Richard Eibrand
Hi guys,
How do I go about getting the http response status as with the httplib  
method .getresponse() using urllib2?

Thing is I need to authenticate with a server, which I can do with urllib2  
(by passing credentials), but I also need to get the status response codes  
and not only when raised as an exception.

Any ideas? I've gone google blind at this stage - as I'm not able to find  
anything useful.

tia,
R
--
Richard Eibrand
Phone: +353 1 492 7444
Mobile: +353 86 388 8887
www.propylon.com
--
http://mail.python.org/mailman/listinfo/python-list


Re: Python Debugger with source code tracking ability

2005-04-20 Thread Richard Eibrand
On 4/20/05, Jaime Wyant <[EMAIL PROTECTED]> wrote:
> I haven't tried the customizations listed at the site below.  If it
> works, let me know.
> 
> http://page.sourceforge.net/tricks.html
> 
> jw
> 
> On 19 Apr 2005 19:45:05 -0700, Tran Tuan Anh <[EMAIL PROTECTED]> wrote:
> > Hi all,
> >
> > I am new to Python and desperated to look for a good Python debugger.
> > I mean a debugger with source coding tracking. For C/C++, emacs and
> > gud offers execellent development env. The source code tracking is
> > extremely useful for recursive functions.

You could take a look at Eclipse (http://eclipse.org/) in conjunction
with pydev (http://pydev.sourceforge.net/). Or you could take a look
at Komodo (http://www.activestate.com/Products/Komodo/) which is a
commercial product with a trial version.

Regards, 

R
--
http://mail.python.org/mailman/listinfo/python-list