Re: [Tutor] LDAP search with ldap library module failing

2013-08-05 Thread Dominik George
Hi, > Now, if I search fog cn=ab*, a much limited search it will return the search > results. Thinking that it could be a limitation from the server side, I've > done > the same search with ldapsearch in bash, and it gets what is expected. Are you sure it gets what is expected? ldapsearch limits

Re: [Tutor] LDAP search with ldap library module failing

2013-08-05 Thread Dave Angel
Antonio de la Fuente wrote: > * Dominik George [2013-08-05 12:45:42 +0200]: > >> > The error message is: ('EOF in multi-line statement', (379, 0)) >> >> > --> 519 return >> > self.search_ext_s(base,scope,filterstr,attrlist,attrsonly,None,None,timeout) >> >> This is why I say "never us

Re: [Tutor] How to extract numerator and denominator from fractions.Fraction(4, 32)?

2013-08-05 Thread Dominik George
Hi, how about casting to str()? -nik "Richard D. Moores" schrieb: import fractions fractions.Fraction(6, 21) >Fraction(2, 7) > >How do I turn that Fraction(2, 7) into "1/7"? (and not >0.2857142857142857...) > >Or do I have to employ fractions.gcd? > >I can't seem to find the answer

Re: [Tutor] How to extract numerator and denominator from fractions.Fraction(4, 32)?

2013-08-05 Thread Alan Gauld
On 05/08/13 16:49, Amit Saha wrote: Ah, better yet! Thanks! But where could I have found that in ? Sometimes, you may also want to do dir() on an object to see what attributes/methods it has/supports. Also >>> help(fractions.F

[Tutor] Start multiple threads from Python

2013-08-05 Thread Ryan Waples
Python 2.7.x on Windows 7. I'm looking for a bit of advice, not sure how to proceed. With Python I am generating a file with a bunch of data in it. I want to analyse the data in this file with three separate programs. Each of these programs is single threaded needs only read access to the data,

Re: [Tutor] Start multiple threads from Python

2013-08-05 Thread Ryan Waples
Thanks, that may be just what I'm looking for. -ryan On Mon, Aug 5, 2013 at 12:26 PM, Chris Down wrote: > On 2013-08-05 12:17, Ryan Waples wrote: > > Currently I am calling each analysis program one at a time with > > subprocess.call(). This is working without a hitch, but as each analysis > >