Re: python: HTTP connections through a proxy server requiring authentication

2013-01-28 Thread Saju M
Hi ,
Thanks barry,

I solved that issue.
I reconfigured squid3 with ncsa_auth, now its working same python code.
Earlier I used digest_pw_auth.

Actually I am trying to fix an issue related to python boto API.

Please check this post
https://groups.google.com/forum/#!topic/boto-users/1qk6d7v2HpQ


Regards
Saju Madhavan
+91 09535134654


On Tue, Jan 29, 2013 at 5:01 AM, Barry Scott ba...@barrys-emacs.org wrote:

 The shipped python library code does not work.

 See http://bugs.python.org/issue7291 for patches.

 Barry


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


Re: log and figure out what bits are slow and optimize them.

2012-02-10 Thread Saju M
Hi,

Yes i saw profile module,
I think i have to do function call via

cProfile.run('foo()')

I know, we can debug this way.

But i need a fixed logging system ..



On Fri, Feb 10, 2012 at 6:08 PM, Arnaud Delobelle arno...@gmail.com wrote:

 On 10 February 2012 12:30, sajuptpm sajup...@gmail.com wrote:
  Hi,
 
  I want to log time taken to complete database requests inside a method/
  function using decorator .  is it possible 
  I think, i have to inject log code inside the method/fuctions or
  modify it.
  I wrote a decorator to log taken by a method/function to complete it
  execution and its working well.
 
  My requirement : log everything and figure out what bits are slow and
  optimize them.
 
  What are your suggestions ??

 Are you familiar with this?

 http://docs.python.org/library/profile.html

 --
 Arnaud




-- 
Regards
Saju Madhavan
+91 09535134654

Anyone who has never made a mistake has never tried anything new -- Albert
Einstein
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: log and figure out what bits are slow and optimize them.

2012-02-10 Thread Saju M
On Fri, Feb 10, 2012 at 6:12 PM, Saju M sajup...@gmail.com wrote:

 Hi,

 Yes i saw profile module,
 I think i have to do function call via

 cProfile.run('foo()')

 I know, we can debug this way.

 But i need a fixed logging system ..



 On Fri, Feb 10, 2012 at 6:08 PM, Arnaud Delobelle arno...@gmail.comwrote:

 On 10 February 2012 12:30, sajuptpm sajup...@gmail.com wrote:
  Hi,
 
  I want to log time taken to complete database requests inside a method/
  function using decorator .  is it possible 
  I think, i have to inject log code inside the method/fuctions or
  modify it.
  I wrote a decorator to log taken by a method/function to complete it
  execution and its working well.
 
  My requirement : log everything and figure out what bits are slow and
  optimize them.
 
  What are your suggestions ??

 Are you familiar with this?

 http://docs.python.org/library/profile.html




  I need a fixed logging system and want to use it in production.
  I think, we can't permanently include profile's debugging code in
source code,
 will cause any performance issue ??




 --
 Arnaud




 --
 Regards
 Saju Madhavan
 +91 09535134654

 Anyone who has never made a mistake has never tried anything new -- Albert
 Einstein




-- 
Regards
Saju Madhavan
+91 09535134654

Anyone who has never made a mistake has never tried anything new -- Albert
Einstein
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: log and figure out what bits are slow and optimize them.

2012-02-10 Thread Saju M
Yes i saw profile module,
I think, i have to do function call via
cProfile.run('foo()')
I know, we can debug this way.
But, I need a fixed logging system and want to use it in production.
  I think, we can't permanently include profile's debugging code in
source code,
 will cause any performance issue ??


On Fri, Feb 10, 2012 at 6:18 PM, Saju M sajup...@gmail.com wrote:



 On Fri, Feb 10, 2012 at 6:12 PM, Saju M sajup...@gmail.com wrote:

 Hi,

 Yes i saw profile module,
 I think i have to do function call via

 cProfile.run('foo()')

 I know, we can debug this way.

 But i need a fixed logging system ..



 On Fri, Feb 10, 2012 at 6:08 PM, Arnaud Delobelle arno...@gmail.comwrote:

 On 10 February 2012 12:30, sajuptpm sajup...@gmail.com wrote:
  Hi,
 
  I want to log time taken to complete database requests inside a method/
  function using decorator .  is it possible 
  I think, i have to inject log code inside the method/fuctions or
  modify it.
  I wrote a decorator to log taken by a method/function to complete it
  execution and its working well.
 
  My requirement : log everything and figure out what bits are slow and
  optimize them.
 
  What are your suggestions ??

 Are you familiar with this?

 http://docs.python.org/library/profile.html




   I need a fixed logging system and want to use it in production.
   I think, we can't permanently include profile's debugging code in
 source code,
  will cause any performance issue ??




  --
 Arnaud




 --
 Regards
 Saju Madhavan
 +91 09535134654

 Anyone who has never made a mistake has never tried anything new --
 Albert Einstein




 --
 Regards
 Saju Madhavan
 +91 09535134654

 Anyone who has never made a mistake has never tried anything new -- Albert
 Einstein




-- 
Regards
Saju Madhavan
+91 09535134654

Anyone who has never made a mistake has never tried anything new -- Albert
Einstein
-- 
http://mail.python.org/mailman/listinfo/python-list