Alan Isaac skrev:
> Since it is seemingly ignored in most of the comments
> on this thread, I just want to remind that PEP 285
> http://www.python.org/dev/peps/pep-0285/
> says this:
>
> In an ideal world, bool might be better implemented as a
> separate integer type that knows how to
Wildemar Wildenburger skrev:
> Nis Jørgensen wrote:
>> Neil Cerutti skrev:
>>
>>
>>> Mostly you can use the default 'excel' dialect and be quite
>>> happy, since Excel is the main reason anybody still cares about
>>> this unecessarily
Neil Cerutti skrev:
> Mostly you can use the default 'excel' dialect and be quite
> happy, since Excel is the main reason anybody still cares about
> this unecessarily hard to parse (it requires more than one
> character of lookahead for no reason except bad design) data
> format.
I knew there ha
Steven D'Aprano skrev:
> On Wed, 04 Jul 2007 23:53:15 -0400, David Abrahams wrote:
>
>> on Wed Jul 04 2007, "Steven D'Aprano"
>> wrote:
>>
>>> On Wed, 04 Jul 2007 14:37:34 +, Marc 'BlackJack' Rintsch wrote:
>>>
On Wed, 04 Jul 2007 09:59:24 -0400, David Abrahams wrote:
> Here's
Bruno Desthuilliers skrev:
> Paul Rubin a écrit :
>> Bruno Desthuilliers <[EMAIL PROTECTED]> writes:
>>
>>> Haskell - as other languages using type-inference like OCaml - are in
>>> a different category. Yes, I know, don't say it, they are statically
>>> typed - but it's mostly structural typing, n
bullockbefriending bard skrev:
> On Jul 4, 7:09 pm, Nis Jørgensen <[EMAIL PROTECTED]> wrote:
>> bullockbefriending bard skrev:
>> A quick solution, not extensively tested
>>
>> # base needs to be an of the python builtin set
>>
>> def
bullockbefriending bard skrev:
> I was able to google a recipe for a k_permutations generator, such
> that i can write:
>
> x = range(1, 4) # (say)
> [combi for combi in k_permutations(x, 3)] =>
>
> [[1, 1, 1], [1, 1, 2], [1, 1, 3], [1, 2, 1], [1, 2, 2], [1, 2, 3], [1,
> 3, 1], [1, 3, 2], [1, 3
Bruno Desthuilliers skrev:
>> Why do people do this without posting what the actual solution is
>
> Probably because those people think usenet is a free help desk ?
Usenet definitely isn't a help desk. You often get useful answers from
usenet, from people who are not reading from a script.
Bruno Desthuilliers skrev:
>> Why do people do this without posting what the actual solution is
>
> Probably because those people think usenet is a free help desk ?
Usenet definitely isn't a help desk. You often get useful answers from
usenet, from people who are not reading from a script.
Bruno Desthuilliers skrev:
>> Why do people do this without posting what the actual solution is
>
> Probably because those people think usenet is a free help desk ?
Usenet definitely isn't a help desk. You often get useful answers from
usenet, from people who are not reading from a script.
Bruno Desthuilliers skrev:
>> Why do people do this without posting what the actual solution is
>
> Probably because those people think usenet is a free help desk ?
Usenet definitely isn't a help desk. You often get useful answers from
usenet, from people who are not reading from a script.
Matteo skrev:
> OK - I'm going to assume your intervals are inclusive (i.e. 34-51
> contains both 34 and 51).
>
> If your intervals are all really all non-overlapping, one thing you
> can try is to put all the endpoints in a single list, and sort it.
> Then, you can use the bisect module to searc
Rostfrei skrev:
> Hello!
>
> I'm writing this message over Google web access. I'm trying to access
> to the comp.lang.python newsgroup trough the Thunderbird, but I just
> can't configure it properly. What is the news server for this
> newsgroup. If I ping comp.lang.python it is not resolved. For
exhuma.twn skrev:
>> for number in range(10,100):
>> for divisor in range(2,number):
>> if number % divisor == 0:
>> break
>> else:
>> print number,
>>
>
> Oh my. Would it not be an idea to rename this "else" into a "finally"?
> As Gabriel points out, the
Steve Howell skrev:
> --- Nis Jørgensen <[EMAIL PROTECTED]> wrote:
>
>> Steve Howell skrev:
>>
>>> def firstIsCapitalized(word):
>>> return 'A' <= word[0] <= 'Z'
>> For someone who is worried about the impact of
&g
Steve Howell skrev:
> And, really, if
> you're not doing automated tests on your application
> now, you don't know what you're missing.
Quote of the day, IMO.
Nis
--
http://mail.python.org/mailman/listinfo/python-list
Steve Howell skrev:
> def firstIsCapitalized(word):
> return 'A' <= word[0] <= 'Z'
For someone who is worried about the impact of non-ascii identifiers,
you are making surprising assumptions about the contents of data.
Nis
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] skrev:
> Hi all,
>
> I am attempting to create an XML document dynamically with Python. It
> needs the following format:
>
>
>
> 1179775800
> 1800
>
>
>
> I tried using minidom with the following code:
>
>
>
> from xml.dom.minido
18 matches
Mail list logo