Re: fast pythonic algorithm question

2006-08-01 Thread David Reed
On Aug 1, 2006, at 11:13 AM, Diez B. Roggisch wrote: Guyon Morée wrote: Memory is no problem. It just needs to be as fast as possible, if that's what this is, fine. If not, I'd like to find out what is :) I'd say it is as fast as it can get - using hashing for lookups is O (n) in I

OT Re: getaddrinfo not found on SCO OpenServer 5.0.5

2006-07-21 Thread David Reed
On Jul 21, 2006, at 4:20 PM, Steve M wrote: In case you haven't heard Microsoft is suing SCO for stealing his Internet concepts and letters and numbers, so you should probably just ditch OpenServer and get Debian like all the smart people have done. I guess the quality of SCO software has

Re: Python taught in schools?

2006-06-25 Thread David Reed
MilkmanDan wrote: I'll be a college freshman this fall, attending Florida Institute of Tech studying electrical engineering. I was considering taking some classes in programming and computer science, and I happened to notice that everything taught is using C ++. After further research,

Re: Threads

2006-05-11 Thread David Reed
On May 11, 2006, at 8:02 PM, placid wrote: Carl J. Van Arsdall wrote: placid wrote: Hi all, In Python, Threads cannot be paused, i remember reading this somewhere, so is there a way around this ? When you say paused do you mean paused by an external source or paused by a call

Re: hyperthreading locks up sleeping threads

2006-05-10 Thread David Reed
On May 10, 2006, at 5:39 PM, [EMAIL PROTECTED] wrote: Grant You might want to run some memory tests. We have multiple identical boxes and they all have the same problem. Olaf They might all have flaky memory - I would follow the other poster's advice and run memtest86 on them. Dave

Re: GladeGen and initializing widgets at startup

2006-05-07 Thread David Reed
On May 7, 2006, at 4:24 AM, Aengys wrote: Thank you for your reply! I finally managed to do what I wanted. Maybe a little side-remark here. In the article you have said that all changes to the init-method are lost once you regenerate the file. I have tried it, and indeed all my changes

Re: GladeGen and initializing widgets at startup

2006-05-06 Thread David Reed
On May 6, 2006, at 4:39 PM, Aengys wrote: Hi all, Being struck by article 7421 of the linux journal (http://www.linuxjournal.com/article/7421), I'll tried to give it a go. Mainly because I have done some experiments with Glade and found that it is really easy to create good looking

Re: ping

2006-04-14 Thread David Reed
On Apr 14, 2006, at 6:30 PM, david brochu jr wrote: I am trying to ping websites and output the results to a txt file: import os file = open(c:\python24\scripts\ip.txt) redirect = open(c:\python24\scripts\log.txt,a) for x in file: ping = ping + x print redirect, os.system(ping)

Re: ping

2006-04-14 Thread David Reed
On Apr 14, 2006, at 8:04 PM, david brochu jr wrote: Thanks, Unfortunately substituting os.system with os.popen results in the output being: open file 'ping www.google.com ', mode 'r' at 0x009C4650 open file 'ping www.boston.com ', mode 'r' at 0x009C4650 open file 'ping www.espn.com

Re: how relevant is C today?

2006-04-08 Thread David Reed
On Apr 8, 2006, at 6:35 PM, Jorge Godoy wrote: Mirco Wahab [EMAIL PROTECTED] writes: The Dice (find tech jobs) has offerings (last 7 days, U.S. + unrestricted) for: *SQL 14,322 C/C++11,968 Java 10,143 ... Perl 3,332 PHP 730 *Python* 503

Re: New editions of several Python books.

2006-02-09 Thread David Reed
On Feb 9, 2006, at 3:59 PM, James Stroud wrote: Magnus Lycka wrote: Programming Python, 3rd edition by Mark Lutz (Paperback - July 2006) Never a favourite of mine really, but a popular book... This one is like broccoli. Its good for you but it doesn't have much flavor. --

pipe related question

2005-11-21 Thread David Reed
Is there any way to have one program run another arbitrary program with input from stdin and display the output as if you had run it in a shell (i.e., you'd see some of the output followed by the input they typed in and then a newline because they pressed return followed by subsequent