Re: [Tutor] Windows vs Linux processing speed.

2011-10-14 Thread Japhy Bartlett
In this situation, the network connection is almost certainly the bottleneck; maybe CPU speed, if they are drastically different, but it seems like you're running relatively comparable hardware. RAM is almost never a *speed* bottleneck, until you start working with datasets larger than you can ho

Re: [Tutor] Windows vs Linux processing speed.

2011-10-14 Thread Alan Gauld
On 14/10/11 17:45, Tony Pelletier wrote: Hi, I have a question regarding the speed of my program on linux in comparison to windows. I'm using geopy and contacting Google for geocodes for records in a csv I created. snip... I mainly use windows, but I tend to use Arch Linux at home... So,

Re: [Tutor] Python Job Scheduling package

2011-10-14 Thread Japhy Bartlett
Is this a thing people would use? I've built this as part of a larger project.. do you think it'd be worth splitting out and polishing up? On Oct 14, 2011 3:55 AM, wrote: Have you thought about writing your own? Others have posted some useful links, but in all honesty you could hack something t

Re: [Tutor] Windows vs Linux processing speed.

2011-10-14 Thread Tony Pelletier
Thanks everyone. Well, I've added a timer to the code and I'm running it from my house. I'm getting the same times here from both laptops which I didn't expect at all. I guess I'll have to take my linux laptop to work and see what my tests produce there. And as an FYI, my windows laptop is actu

Re: [Tutor] Windows vs Linux processing speed.

2011-10-14 Thread Steven D'Aprano
Tony Pelletier wrote: So, my question is. Why is it running so much faster on linux? Is it the way that linux is handling the socket? Does windows open and close it whereas linux might leave it open and just pump data through? Perhaps; you'll have to read the source code to see if there are

Re: [Tutor] 'object' class

2011-10-14 Thread Steven D'Aprano
Dave Angel wrote: 2) I believe super() is new to new-style classes. In any case the documentation for it seem to assume new-style. Yes, super() only works for new style classes. >>> class Test: ... def method(self): ... super(Test, self).method() ... >>> t = Test() >>> t.met

Re: [Tutor] Windows vs Linux processing speed.

2011-10-14 Thread Steven D'Aprano
bob gailer wrote: On 10/14/2011 12:45 PM, Tony Pelletier wrote: Hi, I have a question regarding the speed of my program on linux in comparison to windows. [snip] Speed of a pure Python program depends on * processor speed * competition for resources from other processes * perhaps RAM "

Re: [Tutor] 'object' class

2011-10-14 Thread Dave Angel
On 10/14/2011 10:17 AM, Rafael Durán Castañeda wrote: 2011/10/14 Max S. I have seen classes created with 'class Class_Name:' and 'class Class_Name(object):'. I'm using the latter, just in case it has some sort of method that could be useful that I don't know about, but *are *there any methods

Re: [Tutor] Windows vs Linux processing speed.

2011-10-14 Thread bob gailer
On 10/14/2011 12:45 PM, Tony Pelletier wrote: Hi, I have a question regarding the speed of my program on linux in comparison to windows. [snip] Speed of a pure Python program depends on * processor speed * competition for resources from other processes * perhaps RAM A good starting point

Re: [Tutor] Windows vs Linux processing speed.

2011-10-14 Thread John Fabiani
On Friday, October 14, 2011 09:45:57 am Tony Pelletier wrote: > Hi, > > I have a question regarding the speed of my program on linux in comparison > to windows. > > I'm using geopy and contacting Google for geocodes for records in a csv I > created. Like such: > > try: > reader = csv.r

Re: [Tutor] Windows vs Linux processing speed.

2011-10-14 Thread Prasad, Ramit
From: tutor-bounces+ramit.prasad=jpmorgan@python.org [mailto:tutor-bounces+ramit.prasad=jpmorgan@python.org] On Behalf Of Tony Pelletier Sent: Friday, October 14, 2011 11:46 AM To: tutor@python.org Subject: [Tutor] Windows vs Linux processing speed. Hi,  I have a question regarding the

[Tutor] Windows vs Linux processing speed.

2011-10-14 Thread Tony Pelletier
Hi, I have a question regarding the speed of my program on linux in comparison to windows. I'm using geopy and contacting Google for geocodes for records in a csv I created. Like such: try: reader = csv.reader(open(filename, "r")) for row in reader: if row: # Checki

Re: [Tutor] 'object' class

2011-10-14 Thread Rafael Durán Castañeda
2011/10/14 Max S. > I have seen classes created with 'class Class_Name:' and 'class > Class_Name(object):'. I'm using the latter, just in case it has some sort > of method that could be useful that I don't know about, but *are *there > any methods in the 'object' class? And if so, what are they

[Tutor] 'object' class

2011-10-14 Thread Max S.
I have seen classes created with 'class Class_Name:' and 'class Class_Name(object):'. I'm using the latter, just in case it has some sort of method that could be useful that I don't know about, but *are *there any methods in the 'object' class? And if so, what are they? __

Re: [Tutor] Python Job Scheduling package

2011-10-14 Thread bodsda
Have you thought about writing your own? Others have posted some useful links, but in all honesty you could hack something together to achieve that in next to no time Bodsda Sent from my BlackBerry® wireless device -Original Message- From: harish bansal Sender: tutor-bounces+bodsda=go