On Sat, Jul 30, 2011 at 2:15 PM, Asif Jamadar wrote:
> What if I have two lists for both minimum and maximum values
>
> Minimum Maximum
> 0 10
> 11 20
> 21 30
> 31 40
>
>
> Now how should I check if actual result is not laying between above ran
On Sun, 2011-07-31 at 19:57 +0530, Anand Balachandran Pillai wrote:
> > xml parsing in the case when all that you need from the string is a
> simple
> > numeric value(not a string), then good luck; unlike esr i will not
> use
> > adjectives; but i would not use your code either.
> >
>
> To be fair
On Mon, Aug 1, 2011 at 6:08 AM, Anand Chitipothu wrote:
> > Hang around in #django or #python. The most elegant code that you
> *should*
> > write would invariably be pretty fast (am not ref to asm).
>
> That doesn't mean that any code that is faster is elegant.
>
> IIRC, in python, map function r
> Hang around in #django or #python. The most elegant code that you *should*
> write would invariably be pretty fast (am not ref to asm).
That doesn't mean that any code that is faster is elegant.
IIRC, in python, map function runs slightly faster than list
comprehensions, but list comprehensions
Venkatraman S writes:
[...]
> A regex is the simplest IMHO, because you need not know the syntax of the
> minidom parser.
Oh come on. This sounds like doing it the wrong way because you're not
going to spend time reading the docs and then using performance as a
cover for the laziness.
[...]
Dhananjay Nene writes:
[...]
> re.search("\s*(\d+)\s*",data).group(1)
>
> would appear to be the most succinct and quite fast. Adjust for whitespace
> as and if necessary.
Whitespace (including newlines), mixed cases etc.
[...]
> As far as optimisation goes - I can see at least 3 options
>
On Sun, Jul 31, 2011 at 10:58 PM, Dhananjay Nene
wrote:
> a. the minidom performance is acceptable - no further optimisation required
> b. minidom performance is not acceptable - try the regex one
> c. python library performance is not acceptable - switch to 'c'
>
> I can imagine people starting w
On Thu, Jul 28, 2011 at 3:18 PM, Kenneth Gonsalves wrote:
> hi,
>
> here is a simplified version of an xml file:
>
>
>
>
>
>CloudMade
>
>http://maps.cloudmade.com";>
>
>
>h
Anand Balachandran Pillai writes:
> On Fri, Jul 29, 2011 at 4:41 PM, Venkatraman S wrote:
[...]
> To be fair here, I think what he is saying is that Kenneth's problem
> (getting at the particular value) can be solved by using an aptly
> written regular expression which might be the fastest - n
On Fri, Jul 29, 2011 at 4:41 PM, Venkatraman S wrote:
> Noufal,
>
> I have nothing more to say than this(as i see some tangential replies which
> i am not interested in substantiating - for eg, i never suggested to use a
> regexp based parser - a regexp based xml parser is different from using 'a
How can I install 'suds' for python27 on windows?
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers
11 matches
Mail list logo