Re: It is fun.the result of str.lower(str())

2006-03-09 Thread Tim Roberts
"Sullivan WxPyQtKinter" <[EMAIL PROTECTED]> wrote: > >Guess what would be the result of these functions: > str.lower('ASFA') str.join(str(),['1','1','1']) str.join('a','b') > >If you guess them correctly, please explain. Can you tell us what you expected these to do? It might help fut

Re: It is fun.the result of str.lower(str())

2006-03-07 Thread Christos Georgiou
On Tue, 07 Mar 2006 10:23:59 +0100, rumours say that bruno at modulix <[EMAIL PROTECTED]> might have written: >Now would you be kind enough to explain what's funny about all this ? I would guess it's the statement: "Funny, it works!" -- TZOTZIOY, I speak England very best. "Dear Paul, please s

Re: It is fun.the result of str.lower(str())

2006-03-07 Thread bruno at modulix
Sullivan WxPyQtKinter wrote: > Guess what would be the result of these functions: s/functions/method calls/ > str.lower('ASFA') => 'ASFA'.lower() => 'asfa' str.join(str(),['1','1','1']) => ''.join(['1','1','1']) => '111' str.join('a','b') => 'a'.join('b') => 'b' > > If you gue

Re: It is fun.the result of str.lower(str())

2006-03-07 Thread Duncan Booth
Sullivan WxPyQtKinter wrote: > Guess what would be the result of these functions: > str.lower('ASFA') str.join(str(),['1','1','1']) str.join('a','b') > > If you guess them correctly, please explain. I think it was because I've read the manuals. -- http://mail.python.org/mailman/lis

Re: It is fun.the result of str.lower(str())

2006-03-06 Thread Fredrik Lundh
"Sullivan WxPyQtKinter" wrote: > Guess what would be the result of these functions: > > >>>str.lower('ASFA') > >>>str.join(str(),['1','1','1']) > >>>str.join('a','b') > > If you guess them correctly, please explain. as I just said, I.method() and C.method(I) are equivalent, so that's just an odd

It is fun.the result of str.lower(str())

2006-03-06 Thread Sullivan WxPyQtKinter
Guess what would be the result of these functions: >>>str.lower('ASFA') >>>str.join(str(),['1','1','1']) >>>str.join('a','b') If you guess them correctly, please explain. -- http://mail.python.org/mailman/listinfo/python-list