Re: How to get JSON values and how to trace sessions??

2013-04-25 Thread Roozbeh
You need to handle the cookie that comes with the server response. Example code: import urllib2 opener = urllib2.build_opener() opener.addheaders.append(('Cookie', 'cookiename=cookievalue')) f = opener.open("http://example.com/";) -- http://mail.python.org/mailman/listinfo/python-list

Re: Efficient way of looging in python

2013-04-25 Thread Roozbeh
You can also add several handlers to your logger with different levels, so that one Filehandler passes the errors to a log file and StreamHandler passes messages with a different level to the output stream. Also by setting the basicConfig of the logger you can format the log messages so that you

Re: Using SciPy in application

2013-04-24 Thread Roozbeh
On Wednesday, April 24, 2013 3:52:50 PM UTC+2, Miki Tebeka wrote: > > I want to use spline interpolation function from SciPy in an application > > and at the same time, I don't want the end user to have to install SciPy > > separately. You can pack you application with py2exe, pyinstaller ... and

Re: Using SciPy in application

2013-04-24 Thread Roozbeh
On Wednesday, April 24, 2013 11:13:45 AM UTC+2, Roozbeh wrote: > Hi all, I want to use spline interpolation function from SciPy in an > application and at the same time, I don't want the end user to have to > install SciPy separately. Is there a way around this problem? Thanks in

Re: Using SciPy in application

2013-04-24 Thread Roozbeh
On Wednesday, April 24, 2013 11:13:45 AM UTC+2, Roozbeh wrote: > Hi all, I want to use spline interpolation function from SciPy in an > application and at the same time, I don't want the end user to have to > install SciPy separately. Is there a way around this problem? Thanks in

Re: Using SciPy in application

2013-04-24 Thread Roozbeh
On Wednesday, April 24, 2013 11:13:45 AM UTC+2, Roozbeh wrote: > Hi all, I want to use spline interpolation function from SciPy in an application and at the same time, I don't want the end user to have to install SciPy separately. Is there a way around this problem? Thanks in advance

Using SciPy in application

2013-04-24 Thread Roozbeh
Hi all, I want to use spline interpolation function from SciPy in an application and at the same time, I don't want the end user to have to install SciPy separately. Is there a way around this problem? Thanks in advance for your help -- http://mail.python.org/mailman/listinfo/python-list