Re: python not returning true

2007-02-22 Thread agent-s
Wow. I didn't realize you guys took this so seriously. -- http://mail.python.org/mailman/listinfo/python-list

Re: python not returning true

2007-02-14 Thread Terry Reedy
"John Machin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] || > | On Feb 14, 5:45 pm, "agent-s" <[EMAIL PROTECTED]> wrote: | > | > btw Steven you are so witty I hope to one day pwn noobs on newsgroups | > | > too. | > | > Sorry, but you are 'pwning' yourself here ;-) | | And the r

RE: python not returning true

2007-02-14 Thread Delaney, Timothy (Tim)
John Machin wrote: agent-s wrote: >> btw Steven you are so witty I hope to one day pwn noobs on newsgroups >> too. > > Wit has nothing to do with it. The fact that you are a Python noob is > also irrelevant. Your problem statement was unintelligible, as is your > response. What does "pwn" mean?

Re: python not returning true

2007-02-14 Thread Grant Edwards
On 2007-02-14, Terry Reedy <[EMAIL PROTECTED]> wrote: >| Wit has nothing to do with it. The fact that you are a Python noob is >| also irrelevant. Your problem statement was unintelligible, as is your >| response. What does "pwn" mean? > > I believe that it is a misspelling of 'own' used by pvp (p

Re: python not returning true

2007-02-14 Thread Ben Finney
Michael Bentley <[EMAIL PROTECTED]> writes: > # Something just doesn't seem right in those > # "Every kiss begins with 'K'" commercials. > > >>> 'Every Kiss'.startswith('K') > False >>> kisses = ["kiss", "kiss", "kiss", "kiss", "kiss"] >>> kisses == [kiss for kiss in kisses ...

Re: python not returning true

2007-02-14 Thread Michael Bentley
On Feb 14, 2007, at 3:08 AM, John Machin wrote: > So "enlightenment" has been verbed, has it? I didn't realise that the > language had been transitioned so far :-) *ALL* nouns may be verbed ;-) -michael --- # Something just doesn't seem right in those # "Every kiss begins with 'K'" commercials.

Re: python not returning true

2007-02-14 Thread John Machin
On Feb 14, 7:02 pm, "Terry Reedy" <[EMAIL PROTECTED]> wrote: > "John Machin" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > > | On Feb 14, 5:45 pm, "agent-s" <[EMAIL PROTECTED]> wrote: > | > btw Steven you are so witty I hope to one day pwn noobs on newsgroups > | > too. > > Sorr

Re: python not returning true

2007-02-14 Thread Paul Rubin
"John Machin" <[EMAIL PROTECTED]> writes: > What does "pwn" mean? http://en.wikipedia.org/wiki/Pwn -- http://mail.python.org/mailman/listinfo/python-list

Re: python not returning true

2007-02-14 Thread Terry Reedy
"John Machin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | On Feb 14, 5:45 pm, "agent-s" <[EMAIL PROTECTED]> wrote: | > btw Steven you are so witty I hope to one day pwn noobs on newsgroups | > too. Sorry, but you are 'pwning' yourself here ;-) | Wit has nothing to do with it.

Re: python not returning true

2007-02-13 Thread John Machin
On Feb 14, 5:45 pm, "agent-s" <[EMAIL PROTECTED]> wrote: > On Feb 13, 9:37 pm, "John Machin" <[EMAIL PROTECTED]> wrote: > > > > > On Feb 14, 4:15 pm, "agent-s" <[EMAIL PROTECTED]> wrote: > > > > I have a function, generally described as so: > > > > def function(args): > > > if condition: > > >

Re: python not returning true

2007-02-13 Thread agent-s
On Feb 13, 9:37 pm, "John Machin" <[EMAIL PROTECTED]> wrote: > On Feb 14, 4:15 pm, "agent-s" <[EMAIL PROTECTED]> wrote: > > > I have a function, generally described as so: > > > def function(args): > > if condition: > > if condition2: > > function(args+1) > > r

Re: python not returning true

2007-02-13 Thread Steven D'Aprano
On Tue, 13 Feb 2007 21:15:19 -0800, agent-s wrote: > I have a function, generally described as so: [snip function] > which is used in: > > if function(args): > print "ok" > > so here basically "text" will print out when condition3 is true but it > will not print o

Re: python not returning true

2007-02-13 Thread John Machin
On Feb 14, 4:15 pm, "agent-s" <[EMAIL PROTECTED]> wrote: > I have a function, generally described as so: > > def function(args): > if condition: > if condition2: > function(args+1) return None > elif condition3: > print "text" >

Re: python not returning true

2007-02-13 Thread Ben Finney
"agent-s" <[EMAIL PROTECTED]> writes: > I have a function, generally described as so: > > def function(args): > if condition: > if condition2: > function(args+1) > elif condition3: > print "text" > return True > else: > re