Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #28380 > unrolled thread

Comparing strings from the back?

Started byRoy Smith <roy@panix.com>
First post2012-09-03 21:54 -0400
Last post2012-09-10 21:52 +0000
Articles 20 on this page of 101 — 21 participants

Back to article view | Back to comp.lang.python


Contents

  Comparing strings from the back? Roy Smith <roy@panix.com> - 2012-09-03 21:54 -0400
    Re: Comparing strings from the back? Chris Angelico <rosuav@gmail.com> - 2012-09-04 12:07 +1000
    Re: Comparing strings from the back? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-09-04 02:17 +0000
      Re: Comparing strings from the back? Dan Sommers <dan@tombstonezero.net> - 2012-09-03 21:56 -0700
      Re: Comparing strings from the back? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-09-04 08:50 +0100
      Re: Comparing strings from the back? Johannes Bauer <dfnsonfsduifb@gmx.de> - 2012-09-04 18:32 +0200
        Re: Comparing strings from the back? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-09-04 18:07 +0000
          Re: Comparing strings from the back? Johannes Bauer <dfnsonfsduifb@gmx.de> - 2012-09-05 11:17 +0200
        Re: Comparing strings from the back? Chris Angelico <rosuav@gmail.com> - 2012-09-05 07:59 +1000
          Re: Comparing strings from the back? Johannes Bauer <dfnsonfsduifb@gmx.de> - 2012-09-05 11:24 +0200
            Re: Comparing strings from the back? Johannes Bauer <dfnsonfsduifb@gmx.de> - 2012-09-05 11:43 +0200
              Re: Comparing strings from the back? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-09-05 14:30 +0000
                Re: Comparing strings from the back? Johannes Bauer <dfnsonfsduifb@gmx.de> - 2012-09-05 16:51 +0200
                  Re: Comparing strings from the back? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-09-05 16:24 +0000
                    Re: Comparing strings from the back? Oscar Benjamin <oscar.j.benjamin@gmail.com> - 2012-09-05 22:47 +0000
                      Re: Comparing strings from the back? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-09-06 08:33 +0000
                        Re: Comparing strings from the back? Dave Angel <d@davea.name> - 2012-09-06 06:07 -0400
                          Re: Comparing strings from the back? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-09-07 04:06 +0000
                            Re: Comparing strings from the back? Oscar Benjamin <oscar.j.benjamin@gmail.com> - 2012-09-07 19:10 +0000
                              Re: Comparing strings from the back? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-09-08 00:55 +0000
                                Re: Comparing strings from the back? Oscar Benjamin <oscar.j.benjamin@gmail.com> - 2012-09-08 11:53 +0000
                                RE: Comparing strings from the back? "Prasad, Ramit" <ramit.prasad@jpmorgan.com> - 2012-09-13 18:39 +0000
                                Re: Comparing strings from the back? Dwight Hutto <dwightdhutto@gmail.com> - 2012-09-13 15:37 -0400
                                  Re: Comparing strings from the back? alex23 <wuwei23@gmail.com> - 2012-09-13 20:48 -0700
                                    Re: Comparing strings from the back? Dwight Hutto <dwightdhutto@gmail.com> - 2012-09-14 00:46 -0400
                                      Re: Comparing strings from the back? alex23 <wuwei23@gmail.com> - 2012-09-13 21:54 -0700
                                        Re: Comparing strings from the back? Dwight Hutto <dwightdhutto@gmail.com> - 2012-09-14 01:38 -0400
                                          Re: Comparing strings from the back? alex23 <wuwei23@gmail.com> - 2012-09-13 23:06 -0700
                                            Re: Comparing strings from the back? Dwight Hutto <dwightdhutto@gmail.com> - 2012-09-14 04:03 -0400
                                              Re: Comparing strings from the back? alex23 <wuwei23@gmail.com> - 2012-09-14 01:20 -0700
                                                Re: Comparing strings from the back? Dwight Hutto <dwightdhutto@gmail.com> - 2012-09-14 04:53 -0400
                                                  Re: Comparing strings from the back? alex23 <wuwei23@gmail.com> - 2012-09-14 03:26 -0700
                                                    Re: Comparing strings from the back? Dwight Hutto <dwightdhutto@gmail.com> - 2012-09-14 07:36 -0400
                                                Re: Comparing strings from the back? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-09-14 10:16 +0000
                                                  Re: Comparing strings from the back? Dwight Hutto <dwightdhutto@gmail.com> - 2012-09-14 07:43 -0400
                                                RE: Comparing strings from the back? "Prasad, Ramit" <ramit.prasad@jpmorgan.com> - 2012-09-14 22:43 +0000
                                                Re: Comparing strings from the back? Dwight Hutto <dwightdhutto@gmail.com> - 2012-09-14 23:10 -0400
                                                  Re: Comparing strings from the back? alex23 <wuwei23@gmail.com> - 2012-09-16 18:11 -0700
                                                    Re: Comparing strings from the back? Chris Angelico <rosuav@gmail.com> - 2012-09-17 14:05 +1000
                                                      Re: Comparing strings from the back? alex23 <wuwei23@gmail.com> - 2012-09-16 23:06 -0700
                                                Re: Comparing strings from the back? Ethan Furman <ethan@stoneleaf.us> - 2012-09-17 13:35 -0700
                                                  Re: Comparing strings from the back? Neil Hodgson <nhodgson@iinet.net.au> - 2012-09-18 09:14 +1000
                                                    Re: Comparing strings from the back? Ethan Furman <ethan@stoneleaf.us> - 2012-09-18 08:12 -0700
                                                    Re: Comparing strings from the back? Dwight Hutto <dwightdhutto@gmail.com> - 2012-09-18 11:55 -0400
                                                    Re: Comparing strings from the back? Dwight Hutto <dwightdhutto@gmail.com> - 2012-09-18 11:59 -0400
                                                    Re: Comparing strings from the back? Dwight Hutto <dwightdhutto@gmail.com> - 2012-09-18 12:17 -0400
                                                      Re: Comparing strings from the back? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-09-19 00:47 +0000
                                                    Re: Comparing strings from the back? Chris Angelico <rosuav@gmail.com> - 2012-09-19 02:20 +1000
                                                    Re: Comparing strings from the back? Dwight Hutto <dwightdhutto@gmail.com> - 2012-09-18 16:40 -0400
                                                    Re: Comparing strings from the back? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-09-19 00:48 +0100
                                Re: Comparing strings from the back? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-09-13 20:53 +0100
                                Re: Comparing strings from the back? Dwight Hutto <dwightdhutto@gmail.com> - 2012-09-13 17:06 -0400
                                  Re: Comparing strings from the back? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-09-14 03:39 +0000
                                    Re: Comparing strings from the back? Chris Angelico <rosuav@gmail.com> - 2012-09-14 14:15 +1000
                                Re: Comparing strings from the back? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-09-13 22:17 +0100
                                Re: Comparing strings from the back? Dwight Hutto <dwightdhutto@gmail.com> - 2012-09-13 17:35 -0400
                                RE: Comparing strings from the back? "Prasad, Ramit" <ramit.prasad@jpmorgan.com> - 2012-09-14 21:32 +0000
                            Re: Comparing strings from the back? Oscar Benjamin <oscar.j.benjamin@gmail.com> - 2012-09-07 19:40 +0000
                            Re: Comparing strings from the back? Gelonida N <gelonida@gmail.com> - 2012-09-08 17:52 +0200
                              Re: Comparing strings from the back? Duncan Booth <duncan.booth@invalid.invalid> - 2012-09-10 08:59 +0000
                                Re: Comparing strings from the back? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-09-10 13:45 +0000
                                  Re: Comparing strings from the back? Oscar Benjamin <oscar.j.benjamin@gmail.com> - 2012-09-10 14:06 +0000
                                    Re: Comparing strings from the back? Duncan Booth <duncan.booth@invalid.invalid> - 2012-09-11 09:51 +0000
                                      Re: Comparing strings from the back? Terry Reedy <tjreedy@udel.edu> - 2012-09-11 11:55 -0400
                                  Re: Comparing strings from the back? Chris Angelico <rosuav@gmail.com> - 2012-09-11 00:26 +1000
                                  Re: Comparing strings from the back? Oscar Benjamin <oscar.j.benjamin@gmail.com> - 2012-09-10 14:32 +0000
                                  Re: Comparing strings from the back? Oscar Benjamin <oscar.j.benjamin@gmail.com> - 2012-09-10 14:43 +0000
                                  Re: Comparing strings from the back? Chris Angelico <rosuav@gmail.com> - 2012-09-11 00:56 +1000
                                  Re: Comparing strings from the back? Duncan Booth <duncan.booth@invalid.invalid> - 2012-09-11 09:41 +0000
                        Re: Comparing strings from the back? Oscar Benjamin <oscar.j.benjamin@gmail.com> - 2012-09-06 12:04 +0100
                          Re: Comparing strings from the back? Steve Howell <showell30@yahoo.com> - 2012-09-14 17:51 -0700
                        Re: Comparing strings from the back? Roy Smith <roy@panix.com> - 2012-09-06 08:13 -0400
                          Re: Comparing strings from the back? Chris Angelico <rosuav@gmail.com> - 2012-09-06 22:29 +1000
                        Re: Comparing strings from the back? Johannes Bauer <dfnsonfsduifb@gmx.de> - 2012-09-06 15:43 +0200
                          Re: Comparing strings from the back? Dave Angel <d@davea.name> - 2012-09-06 10:23 -0400
                            Re: Comparing strings from the back? Johannes Bauer <dfnsonfsduifb@gmx.de> - 2012-09-06 16:33 +0200
                            Re: Comparing strings from the back? Johannes Bauer <dfnsonfsduifb@gmx.de> - 2012-09-06 16:42 +0200
                              Re: Comparing strings from the back? Dave Angel <d@davea.name> - 2012-09-06 11:54 -0400
                          Re: Comparing strings from the back? Johannes Bauer <dfnsonfsduifb@gmx.de> - 2012-09-06 16:34 +0200
                        Re: Comparing strings from the back? Gelonida N <gelonida@gmail.com> - 2012-09-08 17:50 +0200
                    Re: Comparing strings from the back? Johannes Bauer <dfnsonfsduifb@gmx.de> - 2012-09-06 15:37 +0200
                      Re: Comparing strings from the back? Chris Angelico <rosuav@gmail.com> - 2012-09-07 00:39 +1000
                        Re: Comparing strings from the back? Johannes Bauer <dfnsonfsduifb@gmx.de> - 2012-09-06 17:36 +0200
                          Re: Comparing strings from the back? Johannes Bauer <dfnsonfsduifb@gmx.de> - 2012-09-06 17:44 +0200
                        Re: Comparing strings from the back? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-09-07 04:07 +0000
    Re: Comparing strings from the back? Terry Reedy <tjreedy@udel.edu> - 2012-09-04 01:13 -0400
    Re: Comparing strings from the back? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-09-04 08:56 +0100
    Re: Comparing strings from the back? Alain Ketterlin <alain@dpt-info.u-strasbg.fr> - 2012-09-04 11:58 +0200
    Re: Comparing strings from the back? Neil Hodgson <nhodgson@iinet.net.au> - 2012-09-05 12:18 +1000
      Re: Comparing strings from the back? MRAB <python@mrabarnett.plus.com> - 2012-09-05 03:39 +0100
      Re: Comparing strings from the back? Roy Smith <roy@panix.com> - 2012-09-04 22:48 -0400
      Re: Comparing strings from the back? Johannes Bauer <dfnsonfsduifb@gmx.de> - 2012-09-05 16:33 +0200
    Re: Comparing strings from the back? Peter Otten <__peter__@web.de> - 2012-09-05 10:29 +0200
    Re: Comparing strings from the back? Chris Angelico <rosuav@gmail.com> - 2012-09-05 18:33 +1000
    Re: Comparing strings from the back? Peter Otten <__peter__@web.de> - 2012-09-05 11:48 +0200
    Re: Comparing strings from the back? Peter Otten <__peter__@web.de> - 2012-09-05 17:45 +0200
    Re: Comparing strings from the back? Dan Goodman <dg.gmane@thesamovar.net> - 2012-09-10 18:07 +0200
    Re: Comparing strings from the back? Oscar Benjamin <oscar.j.benjamin@gmail.com> - 2012-09-10 16:33 +0000
    Re: Comparing strings from the back? Dan Goodman <dg.gmane@thesamovar.net> - 2012-09-10 19:32 +0200
    Re: Comparing strings from the back? Dan Goodman <dg.gmane@thesamovar.net> - 2012-09-10 19:44 +0200
    Re: Comparing strings from the back? Oscar Benjamin <oscar.j.benjamin@gmail.com> - 2012-09-10 21:52 +0000

Page 3 of 6 — ← Prev page 1 2 [3] 4 5 6  Next page →


#29388

FromEthan Furman <ethan@stoneleaf.us>
Date2012-09-17 13:35 -0700
Message-ID<mailman.839.1347914471.27098.python-list@python.org>
In reply to#29141
*plonk*

[toc] | [prev] | [next] | [standalone]


#29393

FromNeil Hodgson <nhodgson@iinet.net.au>
Date2012-09-18 09:14 +1000
Message-ID<kL6dnWcUfuHnMsrNnZ2dnUVZ_qKdnZ2d@westnet.com.au>
In reply to#29388
Ethan Furman:
> *plonk*

    I can't work out who you are plonking. While more than one of the 
posters on this thread seem worthy of a good plonk, by not including 
sufficient context, you've left me feeling puzzled. Is there a guideline 
for this in basic netiquette?

    Neil

[toc] | [prev] | [next] | [standalone]


#29435

FromEthan Furman <ethan@stoneleaf.us>
Date2012-09-18 08:12 -0700
Message-ID<mailman.877.1347982486.27098.python-list@python.org>
In reply to#29393
Neil Hodgson wrote:
> Ethan Furman:
>> *plonk*
> 
>    I can't work out who you are plonking. While more than one of the 
> posters on this thread seem worthy of a good plonk, by not including 
> sufficient context, you've left me feeling puzzled. Is there a guideline 
> for this in basic netiquette?

You're right, my apologies.  Dwight Hutto is the one I plonked.  His 
signal to noise ratio seems incredibly low.

alex23 can definitely be abrasive, but his ratio is high.

(Now I'm wondering what that says about me as far as who I agree with 
and why... I'll have to think about that.)

~Ethan~

[toc] | [prev] | [next] | [standalone]


#29436

FromDwight Hutto <dwightdhutto@gmail.com>
Date2012-09-18 11:55 -0400
Message-ID<mailman.878.1347983744.27098.python-list@python.org>
In reply to#29393
On Tue, Sep 18, 2012 at 11:12 AM, Ethan Furman <ethan@stoneleaf.us> wrote:
> Neil Hodgson wrote:
>>
>> Ethan Furman:
>>>
>>> *plonk*
>>
>>
>>    I can't work out who you are plonking. While more than one of the
>> posters on this thread seem worthy of a good plonk, by not including
>> sufficient context, you've left me feeling puzzled. Is there a guideline for
>> this in basic netiquette?
>
>
> You're right, my apologies.  Dwight Hutto is the one I plonked.  His signal
> to noise ratio seems incredibly low.

Is this just because of the lack of context, or because of the content
of my response to the OP following the question?

And with all the netiquette talk being passed around, why isn't this a
new thread instead of hijacking the OP's original question, and
engaging in bickering about netiquette that goes
on all the time?

And it seems redundant to argue this topic other than to comment, and
let it pass, unless there's seems to be a legitimate reason why
someone 'disobeyed' posting policy.
>
> alex23 can definitely be abrasive, but his ratio is high.
>
> (Now I'm wondering what that says about me as far as who I agree with and
> why... I'll have to think about that.)
>
> ~Ethan~
> --
> http://mail.python.org/mailman/listinfo/python-list



-- 
Best Regards,
David Hutto
CEO: http://www.hitwebdevelopment.com

[toc] | [prev] | [next] | [standalone]


#29437

FromDwight Hutto <dwightdhutto@gmail.com>
Date2012-09-18 11:59 -0400
Message-ID<mailman.879.1347983966.27098.python-list@python.org>
In reply to#29393
>>> sufficient context, you've left me feeling puzzled. Is there a guideline for
>>> this in basic netiquette?
>>

www.woodgate.org/FAQs/netiquette.html



-- 
Best Regards,
David Hutto
CEO: http://www.hitwebdevelopment.com

[toc] | [prev] | [next] | [standalone]


#29438

FromDwight Hutto <dwightdhutto@gmail.com>
Date2012-09-18 12:17 -0400
Message-ID<mailman.880.1347985063.27098.python-list@python.org>
In reply to#29393
>
> You're right, my apologies.  Dwight Hutto is the one I plonked.
You can call me David. I go by my middle name.

And it seem to me I made some valid points about a few simple trimming
of postings, that didn't seem necessary in the context of a small
quick conversation.

[toc] | [prev] | [next] | [standalone]


#29458

FromSteven D'Aprano <steve+comp.lang.python@pearwood.info>
Date2012-09-19 00:47 +0000
Message-ID<5059162a$0$29981$c3e8da3$5496439d@news.astraweb.com>
In reply to#29438
On Tue, 18 Sep 2012 12:17:40 -0400, Dwight Hutto wrote:

> You can call me David. I go by my middle name.

If you want to be known as David, why do you give your name as Dwight? In 
your email client or newsreader, set your name as David and attributions 
will be to David, and people will know to call you David.

Otherwise, people will continue to call you Dwight.


-- 
Steven

[toc] | [prev] | [next] | [standalone]


#29439

FromChris Angelico <rosuav@gmail.com>
Date2012-09-19 02:20 +1000
Message-ID<mailman.883.1347985232.27098.python-list@python.org>
In reply to#29393
On Wed, Sep 19, 2012 at 2:17 AM, Dwight Hutto <dwightdhutto@gmail.com> wrote:
>>
>> You're right, my apologies.  Dwight Hutto is the one I plonked.
> You can call me David. I go by my middle name.

You're most often going to be addressed by the name that's given in
your post headers. In this case "David" has been reduced to an
initial, and is visible only in your email address, whereas "Dwight"
is right there in your real-name.

ChrisA

[toc] | [prev] | [next] | [standalone]


#29450

FromDwight Hutto <dwightdhutto@gmail.com>
Date2012-09-18 16:40 -0400
Message-ID<mailman.890.1348000814.27098.python-list@python.org>
In reply to#29393
> You're most often going to be addressed by the name that's given in
> your post headers. In this case "David" has been reduced to an
> initial, and is visible only in your email address, whereas "Dwight"
 My sig says David, but it was just to let him know he can call me by
my used name.


-- 
Best Regards,
David Hutto
CEO: http://www.hitwebdevelopment.com

[toc] | [prev] | [next] | [standalone]


#29457

FromMark Lawrence <breamoreboy@yahoo.co.uk>
Date2012-09-19 00:48 +0100
Message-ID<mailman.895.1348012201.27098.python-list@python.org>
In reply to#29393
On 18/09/2012 21:40, Dwight Hutto wrote:
>> You're most often going to be addressed by the name that's given in
>> your post headers. In this case "David" has been reduced to an
>> initial, and is visible only in your email address, whereas "Dwight"
>   My sig says David, but it was just to let him know he can call me by
> my used name.
>
>

Any particular him?

-- 
Cheers.

Mark Lawrence.

[toc] | [prev] | [next] | [standalone]


#29073

FromMark Lawrence <breamoreboy@yahoo.co.uk>
Date2012-09-13 20:53 +0100
Message-ID<mailman.634.1347566023.27098.python-list@python.org>
In reply to#28713
On 13/09/2012 19:39, Prasad, Ramit wrote:
> Dwight Hutto wrote:
>> Why don' you just time it,eit lops through incrementing thmax input/
>
> What? Without context I have no idea what this means.
>
>
> Ramit
>

You're wasting your time, I've been described as a jackass for having 
the audacity to ask for context :)

-- 
Cheers.

Mark Lawrence.

[toc] | [prev] | [next] | [standalone]


#29075

FromDwight Hutto <dwightdhutto@gmail.com>
Date2012-09-13 17:06 -0400
Message-ID<mailman.638.1347570387.27098.python-list@python.org>
In reply to#28713
On Thu, Sep 13, 2012 at 4:34 PM, Joshua Landau
<joshua.landau.ws@gmail.com> wrote:
> On 13 September 2012 20:53, Mark Lawrence <breamoreboy@yahoo.co.uk> wrote:
>>
>> On 13/09/2012 19:39, Prasad, Ramit wrote:
>>>
>>> Dwight Hutto wrote:
>>>>
>>>> Why don' you just time it,eit lops through incrementing thmax input/
>>>
>>>
>>> What? Without context I have no idea what this means.
>>>
>>
>> You're wasting your time, I've been described as a jackass for having the
>> audacity to ask for context :)
>
>
> I'm pretty sure you are in the wrong, acting as if what he said didn't make
> sense! Just read it, he obviously was telling you to time it, as eit lops
> are inside thmax input/ which, as you should know if you bothered to read
> the thread, is incrementing.
>
> "don'" is short for "don't", by the way.
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>

It's the fact that I consider the entire conversation the context.
Reading the OP's being the primary, and things they responded
positively to.

There are other things that get mixed up as well, like not hitting the
... in gmail, and so that content doesn't show, or hitting reply,
instead of reply all, and things getting jumbled for the others
involved in the conversation.

Then there is the problem of people saying you posted too much of the
context, or not inline with the OP, just at the end, or top posting.

I try to keep it along the line of what the OP has read, and they know
the context in which it's meant.



-- 
Best Regards,
David Hutto
CEO: http://www.hitwebdevelopment.com

[toc] | [prev] | [next] | [standalone]


#29107

FromSteven D'Aprano <steve+comp.lang.python@pearwood.info>
Date2012-09-14 03:39 +0000
Message-ID<5052a702$0$29981$c3e8da3$5496439d@news.astraweb.com>
In reply to#29075
On Thu, 13 Sep 2012 17:06:23 -0400, Dwight Hutto wrote:

> Then there is the problem of people saying you posted too much of the
> context, or not inline with the OP, just at the end, or top posting.

The solution to "you quoted too much unnecessary verbiage" is not "quote 
nothing". It is quote only the parts that are relevant.

> I try to keep it along the line of what the OP has read, and they know
> the context in which it's meant.

You're assuming that people read your posts immediately after they read 
the post you replied to. Always imagine that your reply will be read a 
week after the post you replied to. Do you still expect the reader to 
understand what you're talking about?



-- 
Steven

[toc] | [prev] | [next] | [standalone]


#29111

FromChris Angelico <rosuav@gmail.com>
Date2012-09-14 14:15 +1000
Message-ID<mailman.662.1347596159.27098.python-list@python.org>
In reply to#29107
On Fri, Sep 14, 2012 at 1:39 PM, Steven D'Aprano
<steve+comp.lang.python@pearwood.info> wrote:
> You're assuming that people read your posts immediately after they read
> the post you replied to. Always imagine that your reply will be read a
> week after the post you replied to.

And a week is extremely generous too; these posts get archived on the
web. I *frequently* find myself hitting mailing list archives when
researching obscurities. This is also another good reason to post
follow-ups to the list, rather than in private email. You might never
be thanked, but somebody years down the track may find the question
and an associated answer.

ChrisA

[toc] | [prev] | [next] | [standalone]


#29076

FromMark Lawrence <breamoreboy@yahoo.co.uk>
Date2012-09-13 22:17 +0100
Message-ID<mailman.639.1347571084.27098.python-list@python.org>
In reply to#28713
On 13/09/2012 21:34, Joshua Landau wrote:
> On 13 September 2012 20:53, Mark Lawrence <breamoreboy@yahoo.co.uk> wrote:
>
>> On 13/09/2012 19:39, Prasad, Ramit wrote:
>>
>>> Dwight Hutto wrote:
>>>
>>>> Why don' you just time it,eit lops through incrementing thmax input/
>>>>
>>>
>>> What? Without context I have no idea what this means.
>>>
>>
>>   You're wasting your time, I've been described as a jackass for having the
>> audacity to ask for context :)
>
>
> I'm pretty sure you are in the wrong, acting as if what he said didn't make
> sense! Just read it, he obviously was telling you to time it, as eit lops
> are inside thmax input/ which, as you should know if you *bothered to read
> the thread*, is incrementing.
>
> "don'" is short for "don't", by the way.
>
>
>

I do grovellingly apologize for my appalling breach of netiquette.  I am 
of course assuming that the rules have changed and that it's now my 
responsibility to wade back through maybe a couple of hundred responses 
on a long thread to find the context.  I also guess that I'm never going 
to achieve my ambition of being a pot smoking hippy CEO of a web 
development company :(

-- 
Cheers.

Mark Lawrence.

[toc] | [prev] | [next] | [standalone]


#29078

FromDwight Hutto <dwightdhutto@gmail.com>
Date2012-09-13 17:35 -0400
Message-ID<mailman.641.1347572155.27098.python-list@python.org>
In reply to#28713
On Thu, Sep 13, 2012 at 5:17 PM, Mark Lawrence <breamoreboy@yahoo.co.uk> wrote:
> On 13/09/2012 21:34, Joshua Landau wrote:
>>
>> On 13 September 2012 20:53, Mark Lawrence <breamoreboy@yahoo.co.uk> wrote:acci sequence
>>
>>> On 13/09/2012 19:39, Prasad, Ramit wrote:
>>>
>>>> Dwight Hutto wrote:
>>>>
>>>>> Why don' you just time it,eit lops through incrementing thmax input/
>>>>>
>>>>
>>>> What? Without context I have no idea what this means.
>>>>
>>>
>>>   You're wasting your time, I've been described as a jackass for having
>>> the
>>> audacity to ask for context :)
>>
>>
>>
>> I'm pretty sure you are in the wrong, acting as if what he said didn't
>> make
>> sense! Just read it, he obviously was telling you to time it, as eit lops
>> are inside thmax input/ which, as you should know if you *bothered to read
>> the thread*, is incrementing.
>>
>>
>> "don'" is short for "don't", by the way.
>>
>>
>>
>
> I do grovellingly apologize for my appalling breach of netiquette.  I am of
> course assuming that the rules have changed and that it's now my
> responsibility to wade back through maybe a couple of hundred responses on a
> long thread to find the context.
  I also guess that I'm never going to
> achieve my ambition of being a pot smoking hippy CEO of a web development
> company :(



>
>
> --
> Cheers.
Cheers usually implies you're an alcoholic pressing buttons, with the
half of rest of the coders on the net.

So don't give up hope, you might be able to take a medication that
doesn't impair your judgement with the side effects alcohol has,

And of course leaves you without the ability to read any of the
responses to say you were right in certain instances, so something
must be wrong with your mail reader, or your alcoholic mind.

Also, without reading the other posts, you're probably just placing in
a duplicate answer sometimes, which might make you seem like a copy
cat.


-- 
Best Regards,
David Hutto
CEO: http://www.hitwebdevelopment.com

[toc] | [prev] | [next] | [standalone]


#29191

From"Prasad, Ramit" <ramit.prasad@jpmorgan.com>
Date2012-09-14 21:32 +0000
Message-ID<mailman.724.1347660134.27098.python-list@python.org>
In reply to#28713
Dwight Hutto wrote:
> On Thu, Sep 13, 2012 at 5:17 PM, Mark Lawrence <breamoreboy@yahoo.co.uk>
> wrote:
> > On 13/09/2012 21:34, Joshua Landau wrote:
> >>
> >> On 13 September 2012 20:53, Mark Lawrence <breamoreboy@yahoo.co.uk>
> wrote:acci sequence
> >>
> >>> On 13/09/2012 19:39, Prasad, Ramit wrote:
> >>>
> >>>> Dwight Hutto wrote:
> >>>>
> >>>>> Why don' you just time it,eit lops through incrementing thmax input/
> >>>>>
> >>>>
> >>>> What? Without context I have no idea what this means.
> >>>>
> >>>
> >>>   You're wasting your time, I've been described as a jackass for having
> >>> the
> >>> audacity to ask for context :)
> >>

Mark,
Sometimes it is the style in which something is asked, and not what 
specifically is asked. ;)

> >>
> >>
> >> I'm pretty sure you are in the wrong, acting as if what he said didn't
> >> make
> >> sense! Just read it, he obviously was telling you to time it, as eit lops
> >> are inside thmax input/ which, as you should know if you *bothered to read
> >> the thread*, is incrementing.
> >>
> >>
> >> "don'" is short for "don't", by the way.
> >
> > I do grovellingly apologize for my appalling breach of netiquette.  I am of
> > course assuming that the rules have changed and that it's now my
> > responsibility to wade back through maybe a couple of hundred responses on a
> > long thread to find the context.
>   I also guess that I'm never going to
> > achieve my ambition of being a pot smoking hippy CEO of a web development
> > company :(
> > --
> > Cheers.

> Cheers usually implies you're an alcoholic pressing buttons, with the
> half of rest of the coders on the net.

Dwight/David: 
Not necessarily true if you happen to be from the UK (or maybe just England). 
It seems to be a cultural signature equivalent to "Thanks"--at least in the 
UK (not sure about other places). 

[snip] 


Ramit


This email is confidential and subject to important disclaimers and
conditions including on offers for the purchase or sale of
securities, accuracy and completeness of information, viruses,
confidentiality, legal privilege, and legal entity disclaimers,
available at http://www.jpmorgan.com/pages/disclosures/email.  

[toc] | [prev] | [next] | [standalone]


#28708

FromOscar Benjamin <oscar.j.benjamin@gmail.com>
Date2012-09-07 19:40 +0000
Message-ID<mailman.369.1347046816.27098.python-list@python.org>
In reply to#28676
On 2012-09-07, Oscar Benjamin <oscar.j.benjamin@gmail.com> wrote:
> On 2012-09-07, Steven D'Aprano <steve+comp.lang.python@pearwood.info> wrote:
>> <snip>
>
> Since string comparison is only useful if the strings can be equal or unequal,
> the average case depends on how often they are equal/unequal as well as the
> average complexity of both. For random strings the frequency of equal strings
> decreases very fast as N increases so that the comparison of random strings is
> O(1).
>
>>
>> (I'm talking about the average here -- the actual number of comparisons 
>> can range all the way up to N, but the average is <= 2.)
>>
>> If I've done the maths right, the exact value for the average is:
>>
>> ((M-1)*sum( (N-i)*M**i for i in range(0, N) ) + N)/(M**N)
>
> I'm not sure where the extra N comes from --------^ but otherwise good.

Ok, I see it's for the case where they're equal.

Oscar

[toc] | [prev] | [next] | [standalone]


#28728

FromGelonida N <gelonida@gmail.com>
Date2012-09-08 17:52 +0200
Message-ID<mailman.386.1347119709.27098.python-list@python.org>
In reply to#28676
On 09/07/2012 06:06 AM, Steven D'Aprano wrote:
> On Thu, 06 Sep 2012 06:07:38 -0400, Dave Angel wrote:
>
>
> Also of some interest is the best case: O(1) for unequal strings (they
> differ at the first character) and O(N) for equal strings.

The worst case is O(N) or N characters
the average case is O(1) or two characters.

For denial of service attacks or systems, that are NEVER allowed to fail 
the worst case is important.

For most other cases the average complexity counts.

However I still wonder for how many applications the complexity of 
string comparisons would be the limiting factor.



[toc] | [prev] | [next] | [standalone]


#28807

FromDuncan Booth <duncan.booth@invalid.invalid>
Date2012-09-10 08:59 +0000
Message-ID<XnsA0CA65636986duncanbooth@127.0.0.1>
In reply to#28728
Gelonida N <gelonida@gmail.com> wrote:

> On 09/07/2012 06:06 AM, Steven D'Aprano wrote:
>> On Thu, 06 Sep 2012 06:07:38 -0400, Dave Angel wrote:
>>
>>
>> Also of some interest is the best case: O(1) for unequal strings (they
>> differ at the first character) and O(N) for equal strings.
> 
> The worst case is O(N) or N characters
> the average case is O(1) or two characters.
> 
> For denial of service attacks or systems, that are NEVER allowed to fail 
> the worst case is important.
> 
> For most other cases the average complexity counts.
> 
> However I still wonder for how many applications the complexity of 
> string comparisons would be the limiting factor.
> 
> 
and of course if you ever do find an application where that worst case 
matters there's an easy way round it: just call intern() on all the strings 
when they are created.

For the comparison to be the limiting factor you have to be doing a lot of 
comparisons on the same string (otherwise creating the string would be the 
limiting factor), so at the expense of a single dictionary insertion when 
the string is created you can get guaranteed O(1) on all the comparisons.

-- 
Duncan Booth http://kupuguy.blogspot.com

[toc] | [prev] | [next] | [standalone]


Page 3 of 6 — ← Prev page 1 2 [3] 4 5 6  Next page →

Back to top | Article view | comp.lang.python


csiph-web