Re: Problem with algorithm

2007-04-12 Thread Charles Sanders
[EMAIL PROTECTED] wrote: > On Apr 12, 10:16�pm, "Jia Lu" <[EMAIL PROTECTED]> wrote: >> Hi all. >> �I want to create a large list like: >> >> ~ >> >> Is there any good algorithm to do this? > > Sure. > test = '01' > > for m in test: > for n in test: > for o in test: >

Re: compiling modules with VS 2008 for python 2.4 prepared with Visual Studio 2003

2007-04-12 Thread Martin v. Löwis
> well, instructions were clear enough for me. What is hard to get why it > could not use free M$ compiler which is presumably produces compatible > objects and libraries. This presumption is incorrect. The compiler does *not* create compatible objects and libraries. It links with msvcr8.dll, wher

Re: Problem with algorithm

2007-04-12 Thread Paul Rubin
Charles Sanders <[EMAIL PROTECTED]> writes: > Forgive any silly mistakes I have made (I've been teaching > myself python for about 1 week) but there is a moderately > well known algorithm for this that extends to arbitrary > lengths of both the list of alternatives and the length > of the required

Databases with python

2007-04-12 Thread Anthony Irwin
Hi All, I am interested in playing with python some more and am looking at writing an app with data stored in a database. I have experience with mysql but thought that their may be other better databases that can be more easily distributed with the program does anyone have any suggestions here

Re: Problem with algorithm

2007-04-12 Thread Charles Sanders
Paul Rubin wrote: [snip] > > def a(n): > if n==0: > yield '' > return > for c in s: > for r in a(n-1): > yield c+r > > print list(a(3)) Of course, obvious in retrospect, recursion instead of iteration. I have yet to comp

Python and JMS?

2007-04-12 Thread Leonard J. Reder
Hello, I would like to write some Python to monitor a JMS middleware software bus. JMS being Java Messaging Service. Can anyone recommend a Python wrapper to JMS for this? My goal is to listen for XML being transfered over a JMS implementation. All the applications so far are in Java. Thank

Python and XML?

2007-04-12 Thread Leonard J. Reder
Hello, What is the best way to process a Relax NG Schema and auto generate XML Python parser/generator code? Any suggestions? Thanks for all replies, Len -- === Leonard J. Reder Home office email : [EMAIL PROTECTED] Lab email : [EMAIL PROTECTED] Lab web

<    1   2   3