On Fri, 20 Apr 2007 23:20:39 -0300, Gabriel Genellina wrote:
>>> ... but increases the care and attention required when coding:
>>
>> There are always trade-offs.
>
> ... and you still need more attention when replying - read again your own
> reply :)
D'oh!
--
Steven.
--
http://mail.pyt
En Fri, 20 Apr 2007 23:13:23 -0300, Steven D'Aprano
<[EMAIL PROTECTED]> escribió:
> On Fri, 20 Apr 2007 15:21:56 -0700, John Machin wrote:
>
>> On Apr 20, 9:12 am, Steven D'Aprano
>> <[EMAIL PROTECTED]> wrote:
>>>
>>> You can do this:
>>>
>>> p = 0
>>> while text:
>>> p = text.find('parrot',
On Fri, 20 Apr 2007 15:21:56 -0700, John Machin wrote:
> On Apr 20, 9:12 am, Steven D'Aprano
> <[EMAIL PROTECTED]> wrote:
>> On Thu, 19 Apr 2007 13:57:16 -0700, Boris Dusek wrote:
>> >> > what is the use-case of parameter "start" in string's "endswith"
>> >> > method?
>>
>> >> def foo(function,ins
On Apr 20, 9:12 am, Steven D'Aprano
<[EMAIL PROTECTED]> wrote:
> On Thu, 19 Apr 2007 13:57:16 -0700, Boris Dusek wrote:
> >> > what is the use-case of parameter "start" in string's "endswith"
> >> > method?
>
> >> def foo(function,instance,param):
> >> if function(instance,param,2,4):
> >>
On Thu, 19 Apr 2007 13:57:16 -0700, Boris Dusek wrote:
>> > what is the use-case of parameter "start" in string's "endswith"
>> > method?
>
>> def foo(function,instance,param):
>> if function(instance,param,2,4):
>> return True
>> else: return False
>>
>> The function must work wh
On Apr 20, 6:08 am, Larry Bates <[EMAIL PROTECTED]> wrote:
> Boris Dušek wrote:
> > Hello,
>
> > what is the use-case of parameter "start" in string's "endswith"
> > method? Consider the following minimal example:
>
> > a = "testing"
> > suffix="ing"
> > a.endswith(suffix, 2)
>
> > Significance of
On Apr 20, 6:36 am, subscriber123 <[EMAIL PROTECTED]> wrote:
> On Apr 19, 3:58 pm, Boris Dušek <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
>
>
> > Hello,
>
> > what is the use-case of parameter "start" in string's "endswith"
> > method? Consider the following minimal example:
>
> > a = "testing"
> > suffi
On Apr 19, 10:36 pm, subscriber123 <[EMAIL PROTECTED]> wrote:
> On Apr 19, 3:58 pm, Boris Dušek <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hello,
>
> > what is the use-case of parameter "start" in string's "endswith"
> > method?
> def foo(function,instance,param):
> if function(instance,param,2,4):
On Apr 19, 3:58 pm, Boris Dušek <[EMAIL PROTECTED]> wrote:
> Hello,
>
> what is the use-case of parameter "start" in string's "endswith"
> method? Consider the following minimal example:
>
> a = "testing"
> suffix="ing"
> a.endswith(suffix, 2)
>
> Significance of "end" is obvious. But not so for "s
Boris Dušek wrote:
> Hello,
>
> what is the use-case of parameter "start" in string's "endswith"
> method? Consider the following minimal example:
>
> a = "testing"
> suffix="ing"
> a.endswith(suffix, 2)
>
> Significance of "end" is obvious. But not so for "start".
>
> Let's assume the "end" pa
Hello,
what is the use-case of parameter "start" in string's "endswith"
method? Consider the following minimal example:
a = "testing"
suffix="ing"
a.endswith(suffix, 2)
Significance of "end" is obvious. But not so for "start".
Let's assume the "end" parameter is not used - then the function
sho
11 matches
Mail list logo