Detecting shutdown of remote socket endpoint.

2005-01-11 Thread Tim Gosselin
I am writing a tcp tunnel but cannot find a way of detecting when a socket shuts down its read end without writing to the socket. For testing the write end of the remote endpoint I just do a: if not sock.recv(buffsize) I cannot write to the socket and check if send returns 0 though, because that

Re: stopping the sound server in PySol code -- how?

2005-01-11 Thread carl . lowenstein
# chmod 000 /usr/lib/python2.3/site-packages/pysolsoundserver.so crude but very effective. carl -- http://mail.python.org/mailman/listinfo/python-list

Re: OT: MoinMoin and Mediawiki?

2005-01-11 Thread David M. Cooke
Paul Rubin writes: > Alexander Schremmer <[EMAIL PROTECTED]> writes: >> > lists of incoming links to wiki pages, >> >> It does. > > Huh? I don't see those. How does it store them, that's resilient > across crashes? Or does it just get wedged if there's a crash? Mos

Re: OT: MoinMoin and Mediawiki?

2005-01-11 Thread Paul Rubin
[EMAIL PROTECTED] (David M. Cooke) writes: > >> > lists of incoming links to wiki pages, > ... > Most Wiki implementations (MoinMoin included) have this, by using a > search. Usually, following the original Wiki (http://c2.com/cgi/wiki) > model, you get at it by clicking on the title of the page. >

Re: Help Optimizing Word Search

2005-01-11 Thread Mike C. Fletcher
To search for a word which is a jumble of a given set of characters in a (sizable) lexicon, see this posting: http://blog.vrplumber.com/427 your alterations would be to check for length == to length - number-of-wildcards (with the wildcards removed from the translation table, of course) and

Re: Checking for X availability

2005-01-11 Thread Dan Stromberg
On Tue, 11 Jan 2005 03:32:01 -0800, Flavio codeco coelho wrote: > I have a program that uses pythondialog for its UI. > > Pythondialog is a wrapper of the shell dialog and xdialog libs. > > But I would like for it to switch between using Dialog ( when X is not > available ) and xdialog (when X

Re: Python.org, Website of Satan

2005-01-11 Thread Jane
"La bouche de la vérité - Déjà Vu Le Prophéte" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Your Uncle Wally just luuirvs > Monty Python -- especially John Clesse, Eric Idle > & Michael Palin -- very funny > > he he he ;-) Believe it or not, we have something

Re: Python.org, Website of Satan

2005-01-11 Thread TimC
On Wed, 12 Jan 2005 at 02:06 GMT, [EMAIL PROTECTED] (aka Bruce) was almost, but not quite, entirely unlike tea: > python.org = 194.109.137.226 > > 194 + 109 + 137 + 226 = 666 > > What is this website with such a demonic name and IP address? What > evils are the programmers who use this languag

Re: Help Optimizing Word Search

2005-01-11 Thread snoe
First of all thank you very much for the reply. I hope I'm not too verbose here, just hope that if someone else runs into a similar problem they can find an answer here. > This appears to be a Computer Science 101 Data Structures and > Algorithms question, not a Python question, but here's an answ

Re: python and macros (again) [Was: python3: 'where' keyword]

2005-01-11 Thread michele . simionato
Paul Rubin: > [EMAIL PROTECTED] writes: >> > It wasn't obvious how to do it in Scheme either. There was quite > a bit of head scratching and experimental implementation before > there was consensus. Actually I am not convinced there is consensus yet, i.e. there is a non-negligible minority of s

Re: Help Optimizing Word Search

2005-01-11 Thread snoe
Mike, Thanks, this worked great, and was 4x faster than my method! Thanks everyone for replying! The changes I made were: !rest = ''.join([chr(i) for i in range(256) if chr(i).upper() not in WORD]) !# a wildcard in the word means that we check all letters !if '?' in WORD: !rest = '' !trans

Re: Python.org, Website of Satan

2005-01-11 Thread Brian Eable
[EMAIL PROTECTED] writes: > python.org = 194.109.137.226 > > 194 + 109 + 137 + 226 = 666 BUT! perl -e '$a="194.109.137.226"; @a = reverse split /\./, $a; for $i (0..3) { $sum += $a[$i]*(256**$i) } print "sum = $sum\n"' 226 + 35072 + 7143424 + 3254779904 = 3261958626 http://3261958626/ Whic

Re: Python.org, Website of Satan

2005-01-11 Thread Tim Daneliuk
DogWalker wrote: "Luis M. Gonzalez" <[EMAIL PROTECTED]> said: [EMAIL PROTECTED] wrote: python.org = 194.109.137.226 194 + 109 + 137 + 226 = 666 What is this website with such a demonic name and IP address? What evils are the programmers who use this language up to? You dared to unveil our secret.

Re: [OT] SciTe

2005-01-11 Thread Fouff
I use Scintilla which is Scite with a lot of configurations files. In directory exists a file "cpp.properties" and near the end of the file is describe the command line use to compile, to link, ... I think you would be able to change here the compiler. regards Fouff -- http://mail.python.org/mail

20050111: list basics

2005-01-11 Thread Xah Lee
# in Python, list can be done this way: a = [0, 1, 2, 'more',4,5,6] print a # list can be joined with plus sign b = a + [4,5,6] print b # list can be extracted by appending a square bracket with index # negative index counts from right. print b[2] print b[-2] # sublist extraction print 'element

Re: a new Perl/Python a day

2005-01-11 Thread Jon Perez
Bob Smith wrote: With terms such as "blabbering Unix donkeys" and "sloppy perl monkeys" I would say that the monkey-mind is indeed one that is enamoured with obfuscation and complicated gadgetry for its own sake. Ever wonder why no one has ever considered using the phrase "Zen of Perl"? (yes, it

Re: Windows GUIs from Python

2005-01-11 Thread Jon Perez
Wow, Venster looks cool and to think I've never heard of it before. I knew following this newsgroup would pay off one day... Luke Skywalker wrote: On Tue, 11 Jan 2005 22:15:36 +0100, Thomas Heller <[EMAIL PROTECTED]> wrote: Well, venster. Although it is most certainly alpha. But with some work..

Excel module for Python

2005-01-11 Thread sam
Hi group, I m wondering which Excel module is good to be used by Python? Thanks Sam -- http://mail.python.org/mailman/listinfo/python-list

<    1   2   3