Re: Gadfly server startup error

2006-09-13 Thread Ralf Muschall
Steve Holden wrote: > Yes, the whole Gadfly SF web seems to be a bit of a mess. Maybe it has been infected by the source code+doc ;-) I just started the server (after applying Carl's changes) with gfserver foodb . '' (the DB "foodb" had been created earlier using gfplus locally). If I lo

Re: Gadfly server startup error

2006-09-13 Thread Ralf Muschall
Steve Holden wrote: > You're already doing better than I am. On Cygwin 2.5rc2 and Windows > 2.4.2 I can't even get it to runs its tests properly: I don't remember whether I looked into that at all. ... > NameError: global name 'Server' is not defined ... > Time to report a bug, methinks? Makes

Gadfly server startup error

2006-09-12 Thread Ralf Muschall
Hello, I just tried the recent gadfly (from SF), using Python 2.4.2 (hand built, since my Suse 8.2 had only 2.2.2). The direct operation of gadfly works. After calling gfserver, I get (in addition to a complete users manual dumped on the screen) the following error message: |Traceback (most rec

Re: time.clock() going backwards??

2006-08-29 Thread Ralf Muschall
Grant Edwards wrote: > This is a _Microsoft_Product_. There doesn't have to be a > reason for something to be done in a half-assed manner. No, it is a quantum effect. If the energy of a clock has a lower bound, there must be a nonzero probability for it to run backwards. See <[EMAIL PROTECTED]

Re: Railroad track syntax diagrams

2006-08-02 Thread Ralf Muschall
Paddy wrote: > I googlled and got these: > http://www.informatik.uni-freiburg.de/~thiemann/haskell/ebnf2ps/ > http://www.antlr.org/share/1107033888258/SDG2-1.5.zip There is another beast, also called ebnf2ps, but in elisp (runs inside the editor). It requires no additional software (i.e. no

Re: 10GB XML Blows out Memory, Suggestions?

2006-06-07 Thread Ralf Muschall
Paul McGuire schrieb: > meat of the data can be relatively small. Note also that this XML overhead > is directly related to the verbosity of the XML designer's choice of tag > names, and whether the designer was predisposed to using XML elements over > attributes. Imagine a record structure for

Re: Name conflict in class hierarchy

2006-05-23 Thread Ralf Muschall
bruno at modulix wrote: >> In Python, a function not intended to be overriden should be either >> have a name starting with an underscore > actually with *two* underscores. The single-leading-underscore naming > scheme is the convention for 'protected' (read: 'implementation, not > API') attribut

Re: Name conflict in class hierarchy

2006-05-20 Thread Ralf Muschall
Jeffrey Barish wrote: [overriding of base class member functions by subclass] > but then B does not inherit other functions of A that I would like to use. > It struck me that this must be a common problem in OOP, so I'm wondering > whether there is a simple solution that I am missing. In C++, o

Re: [silly] Does the python mascot have a name ?

2006-05-19 Thread Ralf Muschall
John D Salt wrote: > I'll believe you if you can give me a list of ten things that don't have > names. [ sub{$_}, sub{$_+1}, sub{$_+2}, sub{$_+3}, sub{$_+4}, sub{$_+5}, sub{$_+6}, sub{$_+7}, sub{$_+8}, sub{$_+9}] That was easy. Ralf -- http://mail.python.org/mailman/listinfo/python-list

Re: [OT] Any Python lullabies?

2006-04-18 Thread Ralf Muschall
Christos Georgiou wrote: > Since there have been python limmericks, are there any Python lullabies that > I can sing to my newborn son (actually, born yesterday)? I tried to murmur > some select parts from the tutorial, but he somehow wasn't very interested > :) There is something near the end of

Re: "The World's Most Maintainable Programming Language"

2006-04-05 Thread Ralf Muschall
Mirco Wahab wrote: > Perl, named after Pearl Biggar (Larry Wall’s fiancée), His wife was Gloria since at least 1979, perl was published in 1987. This seems to be an insider joke (he wanted to call the language "Gloria" first, then "pearl", then "perl"). > set a high standard for naming techni

Re: Any advantage in LISPs having simpler grammars than Python?

2006-03-08 Thread Ralf Muschall
Douglas Alan wrote: > Experienced Lisp programmers use indentation to visually parse the > program structure, just like Python programmers do for Python. > Experienced Lisp programmers learn to not see the parentheses when > they don't need to. True, and this is IMHO an advantage of lisp to pytho

Re: processing the genetic code with python?

2006-03-07 Thread Ralf Muschall
James Stroud wrote: > I'm writing your name down and this is the last time I'm doing homework > for you. This won't help - she doesn't even know her name (but google helps with that) ;-) The fact that she uses E.coli ribosomal protein L1 strongly indicates that this is really homework. ... > d

Re: Determing whether two ranges overlap

2006-02-17 Thread Ralf Muschall
Robin Haswell wrote: > I can think of lots of ways to do this but it's in a tight loop so I need > it to be as efficient as possible. Any help welcome :-) There are 24 possibilities of having 4 numbers in a row, and the following 6 of them describe nonempty intervals (the remaining 18 are obtaine

Re: Shortest prime number program

2006-02-11 Thread Ralf Muschall
Christoph Zwerschke wrote: > [EMAIL PROTECTED] schrieb: >> How about: >> [2]+[x for x in range(1,99) if 2**x%x==2] > If the range goes beyond 340, it also gives non-primes... [2,3]+[x for x in range(1,99) if 2**x%x==2 and 3**x%x==3] [2,3,5]+[x for x in range(1,99) if 2**x%x==2 and 3**x%x==3 and

Re: Encoding sniffer?

2006-01-06 Thread Ralf Muschall
Diez B. Roggisch wrote: > AFAIK iso-8859-1 has all codepoints taken - so you won't go beyond that > in your example. IIRC the range 128-159 (i.e. control codes with the high bit set) are unused. Ralf -- http://mail.python.org/mailman/listinfo/python-list

Re: popen4

2005-10-19 Thread Ralf Muschall
Ganesan Rajagopal wrote: > Try pexpect instead. http://pexpect.sourceforce.net/ ^ That's a content-free ad site. You probably mean sourceforGe. Ralf -- http://mail.python.org/mailman/listinfo/python-list

Re: Lots of pdf files

2005-07-21 Thread Ralf Muschall
Greg Lindstrom wrote: > Hello- > I'm running Python 2.3 on a Linux system and have lots (about 2000) > files in pdf format to print each day. If I just wind up and fire all > the files at the printer at once (as 2000 separate print jobs), the > print server throws a fit and our system admin comes