Re: [BangPypers] Python performance

2009-12-22 Thread Noufal Ibrahim
On Tue, Dec 22, 2009 at 1:25 PM, Ramdas S ram...@gmail.com wrote: Dear all, I saw this doc and a few other docs online. http://wiki.python.org/moin/PythonSpeed/PerformanceTips Are there any recommendations on how I can improve performances in case of I/O. I have a program that opens

Re: [BangPypers] Python performance

2009-12-22 Thread Senthil Kumaran
On Tue, Dec 22, 2009 at 02:01:47PM +0530, Venkatraman S wrote: Are you sure about this? As in, multithreading *in* python does help? Yes, very much. It is a prevalent misunderstanding that multi-threading in python does not help at all. For IO operations like reading a file, listening and

[BangPypers] Tuples vs Lists, perfromance difference

2009-12-22 Thread Vishal
Hi, I was presuming that since tuples are immutable, like strings, and string immutability increases performance ( http://effbot.org/pyfaq/why-are-python-strings-immutable.htm) so also, using tuple would improve performance over Lists. is this presumption correct? if it is, then as a practice,

Re: [BangPypers] Tuples vs Lists, perfromance difference

2009-12-22 Thread Sidharth Kuruvila
Hi, I don't think you should see and difference in performance. Lists might take a bit more space since they usually preallocate memory for future inserts. I'd go for lists where ever i need to use an array or a list, and tuples for storing records. Regards, Sidharth On Tue, Dec 22, 2009

Re: [BangPypers] Tuples vs Lists, perfromance difference

2009-12-22 Thread Noufal Ibrahim
On Tue, Dec 22, 2009 at 7:10 PM, Vishal vsapr...@gmail.com wrote: Hi, I was presuming that since tuples are immutable, like strings, and string immutability increases performance ( http://effbot.org/pyfaq/why-are-python-strings-immutable.htm) so also, using tuple would improve performance

Re: [BangPypers] Tuples vs Lists, perfromance difference

2009-12-22 Thread Roshan Mathews
On Tue, Dec 22, 2009 at 7:10 PM, Vishal vsapr...@gmail.com wrote: I was presuming that since tuples are immutable, like strings, and string immutability increases performance ( http://effbot.org/pyfaq/why-are-python-strings-immutable.htm) so also, using tuple would improve performance over

Re: [BangPypers] Tuples vs Lists, perfromance difference

2009-12-22 Thread Noufal Ibrahim
On Tue, Dec 22, 2009 at 9:52 PM, Roshan Mathews rmath...@gmail.com wrote: [..] http://jtauber.com/blog/2006/04/15/python_tuples_are_not_just_constant_lists/ Tuples are not constant lists -- this is a common misconception. Lists are intended to be homogeneous sequences, while tuples

Re: [BangPypers] Tuples vs Lists, perfromance difference

2009-12-22 Thread Roshan Mathews
On Tue, Dec 22, 2009 at 9:59 PM, Noufal Ibrahim nou...@gmail.com wrote:  This is an 'intention' rather than an enforced rule isn't it? It does seem natural though. I don't think i've ever seen a tuple with elements of different types. I use namedtuple for those, (or just plain classes before I

[BangPypers] Is it possible to run python software in WinxP?

2009-12-22 Thread 74yrs old
Hello Python experts, I have one python program og (113KB) ( on request, I shall forward the same) which run sucessfully in Ubuntu 9.04 and Fedora-11. but failed to run in WinXP even though I have installed python 2.06 and python 3.0 and also GTK 2.0. Since I am newbie to python, I seek your

Re: [BangPypers] Is it possible to run python software in WinxP?

2009-12-22 Thread Pradeep Gowda
On Tue, Dec 22, 2009 at 11:00 PM, 74yrs old withblessi...@gmail.com wrote: for download at website viz http://code.google.com/p/tesseractindic/. ( On request, the said program - shall forward the same to you) You need GTK2+ libraries and PyGTK The first one is available at:

[BangPypers] can not connect to Mobile Broadband

2009-12-22 Thread BR!j!TH
Hi Friends, Does Anyone having problem in connecting BSNL EVDO (USB modem) broadband to Ubuntu 9.10. For me it is not working. I am really disappointed because with out internet I can Install my favorite applications from repository. 9.04 it was working fine. Now I am thinking to switch back to

Re: [BangPypers] can not connect to Mobile Broadband

2009-12-22 Thread Pradeep Gowda
On Tue, Dec 22, 2009 at 11:55 PM, BR!j!TH briji...@gmail.com wrote: Does any one have any solution this problem ? Have you tried configuring it using the Network Manager app? You are on the wrong mailing list. And even if someone does attempt to answer, your question does not carry

Re: [BangPypers] can not connect to Mobile Broadband

2009-12-22 Thread BR!j!TH
Sorry 2009/12/23 Pradeep Gowda prad...@btbytes.com On Tue, Dec 22, 2009 at 11:55 PM, BR!j!TH briji...@gmail.com wrote: Does any one have any solution this problem ? Have you tried configuring it using the Network Manager app? You are on the wrong mailing list. And even if someone

Re: [BangPypers] Tuples vs Lists, perfromance difference

2009-12-22 Thread Vishal
Yeah I agree with you Noufal, that it is low level language thinking. However, when we decided to go to Python, it was because its development speed was wonderful. After having everything in Python now, performance is something people want to look at. Hence these efforts. We have already done a