On 13 fév, 04:09, Terry Reedy wrote:
>
>
> * The new internal unicode scheme for 3.3 is pretty much a mixture of
> the 3 storage formats (I am of course, skipping some details) by using
> the widest one needed for each string. The advantage is avoiding
> problems with each of the three. The disadv
Hello,
I am using a product that has a built-in Python interpreter (ESRI ArcGIS
Desktop 10.0 SP3) and have implemented multiprocessing in script that can
be run by a tool within the application using the built-in interpreter.
The way the built-in interpreter works is incompatible with multiproces
On Mon, 13 Feb 2012 13:01:05 -0800 (PST)
Rick Johnson wrote:
> On Feb 13, 12:38 pm, Ian Kelly wrote:
> > I hate being suckered in by trolls, but this paragraph demands a response.
Ditto...
> > On Mon, Feb 13, 2012 at 9:01 AM, Rick Johnson
> >
> > wrote:
> > > You are born with rights. Life, L
(Sorry for top-posting this bit, but I think it's required before the
rest of my response)
At the risk of wading into this from a UK citizen's perspective:
You're imagining a public healthcare system as if it were private.
Imagine you go to a doctor and say "I've got the flu, can you give me
ant
On 14Feb2012 13:13, Zheng Li wrote:
| > On 13Feb2012 15:59, Zheng Li wrote:
| > | how to tell a method is class method or static method or instance method?
| >
| > Maybe a better question is:
| > under what circumstances do you need to figure this out?
|
| I can get "method1" of class "Test" b
Rick Johnson wrote:
> BS! With free healthcare, those who would have allowed their immune
> system fight off the flu, now take off from work, visit a local
> clinic, and get pumped full of antibiotics so they can create a new
> strain of antibiotic resistant flu virus! Thanks free healthcare!
An
On Tue, Feb 14, 2012 at 6:31 AM, Duncan Booth
wrote:
> Here's a clue: No flu viruses are treatable with antibiotics.
Oh my god we're too late! Now they're ALL resistant!
-- Devin
--
http://mail.python.org/mailman/listinfo/python-list
On Feb 13, 9:01 pm, Rick Johnson wrote:
>
> And just how much healthcare dollars are you entitled to exactly? Can
> you put your entitlement into some form of monetary value?
Rick hats off to you man -- you are damn good! Did you study at a top-
troll-school?
eg. http://www.youtube.com/watch?v=FM
On Feb 14, 4:38 am, Devin Jeanpierre wrote:
> Hey Pythonistas,
>
> Consider the regular expression "$*". Compilation fails with the
> exception, "sre_constants.error: nothing to repeat".
>
> Consider the regular expression "(?=$)*". As far as I know it is
> equivalent. It does not fail to compile.
On Tue, Feb 14, 2012 at 8:20 AM, Vinay Sajip wrote:
> $ is a meta character for regular expressions. Use '\$*', which does
> compile.
I mean for it to be a meta-character.
I'm wondering why it's OK for to repeat a zero-width match if it is a
zero-width assertion.
-- Devin
--
http://mail.python
Hi,
Could someone please tell me what the following sorting algorithm is called?
Let an array contain the elements a_1, a_2, ..., a_N. Then:
for i = 1 to N-1:
for j = i+1 to N:
if a_j < a_i then swap(a_j, a_i)
It's so simple that it's not mentioned anywhere. I guess it's called
"sel
2012/2/14 Devin Jeanpierre :
> Hey Pythonistas,
>
> Consider the regular expression "$*". Compilation fails with the
> exception, "sre_constants.error: nothing to repeat".
>
> Consider the regular expression "(?=$)*". As far as I know it is
> equivalent. It does not fail to compile.
>
> Why the inc
Am 14.02.2012 00:18, schrieb Bruce Eckel:
I'm willing to subclass str, but when I tried it before it became a
little confusing -- I think mostly because anytime I assigned to self
it seemed like it converted the whole object to a str rather than a
Path. I suspect I don't know the proper idiom for
Jabba Laci wrote:
> Could someone please tell me what the following sorting algorithm is
> called?
>
> Let an array contain the elements a_1, a_2, ..., a_N. Then:
>
for i in xrange (N-1):
for j in xrange (i, N):
if a[j] < a[i]:
a[i], a[j] = a[j], a[i]
>
> It's so simple t
On Tue, Feb 14, 2012 at 10:05 AM, Vlastimil Brom
wrote:
> However, is there any realistic usecase for repeated zero-width anchors?
Maybe. There is a repeated zero-width anchor is used in the Python re
test suite, which is what made me notice this. I assume that came from
some actual use-case. (se
>
for i in xrange (N-1):
for j in xrange (i, N):
if a[j] < a[i]:
a[i], a[j] = a[j], a[i]
> It's what Wikipedia says a selection sort is: put the least element in [0],
> the least of the remaining elements in [1], etc.
If your only requirement to match to selection sort is
Am 14.02.2012 16:01, schrieb Jabba Laci:
Could someone please tell me what the following sorting algorithm is called?
Let an array contain the elements a_1, a_2, ..., a_N. Then:
for i = 1 to N-1:
for j = i+1 to N:
if a_j< a_i then swap(a_j, a_i)
It's so simple that it's not ment
On 14 February 2012 15:31, Dennis Lee Bieber wrote:
> On Tue, 14 Feb 2012 16:01:05 +0100, Jabba Laci
> wrote:
>
>>Could someone please tell me what the following sorting algorithm is called?
>>
>>Let an array contain the elements a_1, a_2, ..., a_N. Then:
>>
>>for i = 1 to N-1:
>> for j = i+1
Prasad, Ramit wrote:
>>
> for i in xrange (N-1):
> for j in xrange (i, N):
> if a[j] < a[i]:
> a[i], a[j] = a[j], a[i]
>> It's what Wikipedia says a selection sort is: put the least element in
>> [0], the least of the remaining elements in [1], etc.
>
> If your only requi
On Feb 14, 8:22 am, Arnaud Delobelle wrote:
> On 14 February 2012 15:31, Dennis Lee Bieber wrote:
>
> > On Tue, 14 Feb 2012 16:01:05 +0100, Jabba Laci
> > wrote:
>
> >>Could someone please tell me what the following sorting algorithm is called?
>
> >>Let an array contain the elements a_1, a_2, .
Den wrote:
> I disagree. In a bubble sort, one pointer points to the top element,
> while another descents through all the other elements, swapping the
> elements at the pointers when necessary.
'When I use a word,' Humpty Dumpty said, in rather a scornful tone, 'it
means just what I choose it
On Tue, Feb 14, 2012 at 9:55 AM, Den wrote:
> On Feb 14, 8:22 am, Arnaud Delobelle wrote:
>> On 14 February 2012 15:31, Dennis Lee Bieber wrote:
>>
>> > On Tue, 14 Feb 2012 16:01:05 +0100, Jabba Laci
>> > wrote:
>>
>> >>Could someone please tell me what the following sorting algorithm is
>> >>
On 14/02/2012 15:53, Devin Jeanpierre wrote:
On Tue, Feb 14, 2012 at 10:05 AM, Vlastimil Brom
wrote:
However, is there any realistic usecase for repeated zero-width anchors?
Maybe. There is a repeated zero-width anchor is used in the Python re
test suite, which is what made me notice this.
Hi,
> Either you're misremembering, or the algorithm you programmed 43 years
> ago was not actually bubble sort. Quoting from Wikipedia:
>
> """
> Bubble sort, also known as sinking sort, is a simple sorting algorithm
> that works by repeatedly stepping through the list to be sorted,
> comparing
On 12-02-08 01:52 PM, Terry Reedy wrote:
On 2/8/2012 3:14 PM, Todd Whiteman wrote:
My name is Todd. I'm the lead developer for Komodo IDE (Interactive
Development Environment) and Komodo Edit (a free, open-source editor) at
ActiveState. I wanted to announce that the newest version, Komodo 7, ha
Prasad, Ramit wrote:
> My apologies, you are correct. It is a selection sort, just an inefficient
> one.
Hmm, I think I should say it is neither since it reminds me of a hybrid of
both (bubble/selection).
The swapping seems very bubble sort, but the looking for the min / max
case seems selectio
Wilson, Mel wrote:
>Well, the classic bubble sort swaps adjacent elements until the extreme one
>gets all the way to the end. This sort continually swaps with the end
>element during one pass until the end element holds the extreme. Then it
>shrinks the range and swaps then next less extreme i
On Tue, Feb 14, 2012 at 11:10 AM, Jabba Laci wrote:
> Hi,
>
>> Either you're misremembering, or the algorithm you programmed 43 years
>> ago was not actually bubble sort. Quoting from Wikipedia:
>>
>> """
>> Bubble sort, also known as sinking sort, is a simple sorting algorithm
>> that works by r
On Feb 14, 2:41 am, John O'Hagan wrote:
>
> 1. Publicly-funded healthcare is both cheaper and more effective than
> privatised systems. It's also the right thing to do (i.e. you don't have
> to stand by while someone dies because their illness is "their fault").
So you have no problem paying the
On Wed, Feb 15, 2012 at 11:21 AM, Rick Johnson
wrote:
> On Feb 14, 2:41 am, John O'Hagan wrote:
>> This is a failure to acknowledge the is/ought problem, and is usually
>> compounded (Rick is no exception) by the equally mistaken view that there
>> exist
>> "superior" individuals whose possessio
On Feb 13, 10:41 am, Tim Wintle wrote:
> Imagine you go to a doctor and say "I've got the flu, can you give me
> antibiotics".
>
> In a Private healthcare system:
>
> * The doctor gets paid for retaining a client.
> * He is incentivised to do what you request.
> ... so he gives you the antibiot
On Feb 14, 5:31 am, Duncan Booth wrote:
> Rick Johnson wrote:
> > BS! With free healthcare, those who would have allowed their immune
> > system fight off the flu, now take off from work, visit a local
> > clinic, and get pumped full of antibiotics so they can create a new
> > strain of antibioti
On Wed, Feb 15, 2012 at 11:48 AM, Rick Johnson
wrote:
> Duncan, your reading and comprehension skills are atrocious. Please re-
> read the paragraph you quoted, then spend some time "comprehending"
> it, then show me where i stated that "antibiotics cure viral
> infections". psst: i NEVER said any
On Feb 14, 6:44 pm, Chris Angelico wrote:
> If you truly believe that only the best should be allowed to survive
> and that you are not of the best, then the logical thing to do is to
> immediately destroy yourself. Oddly enough, though, I don't see many
> eugenics proponents committing mass suic
On Tue, Feb 14, 2012 at 1:05 PM, MRAB wrote:
>> And yeah, even something as crazy as ()* works, but as soon as it
>> becomes (a*)* it doesn't work. Weird.
>>
> I think it's a combination of warning the user about something that's
> pointless,
> as in the case of "$*", and producing a pattern which
thank you.
I know the second way works.
but in my case, i need "method1" to be a class method, because I use it to
create an object.
I have a lot of classes that have "__init__" with 2 arguments -- self, and user
id.
usually, "SomeClass(user_id)" is used to create an object of "SomeClass",
bu
On 15/02/2012 01:43, Devin Jeanpierre wrote:
On Tue, Feb 14, 2012 at 1:05 PM, MRAB
wrote:
And yeah, even something as crazy as ()* works, but as soon as
it becomes (a*)* it doesn't work. Weird.
I think it's a combination of warning the user about something
that's pointless, as in the case of "
After my testing of JAVA, PYTHON, VB, C-sharp and Erlang like
script languages, I noticed that script languages should be
timed after the shell interpreter completed loaded.
The start up loading time of script interpreters should be excluded in the
measure of executing a byte code script.
Thi
sturlamolden wrote:
>
>There are bigsimilarities between Python and the new C++ standard. Now
>we can actually use our experience as Python programmers to write
>fantastic C++ :-)
This is more true than you might think. For quite a few years now, I've
been able to do an almost line-for-line tran
39 matches
Mail list logo