Re: [Tutor] flag to call methods on objects?

2009-07-31 Thread Dave Angel
prasad rao wrote: hello I removed the bugs.But still getting error report. import mcript Traceback (most recent call last): File "", line 1, in import mcript File "C:\Python26\mcript.py", line 78, in a.main() File "C:\Python26\mcript.py", line 58, in main nl=__

Re: [Tutor] How to use Python 2.6 with IDLE?

2009-07-31 Thread Dick Moores
Finally, success! Thanks to help from the Ulipad list. Python is built on wxPython. I upgraded wxPython to v2.8. Then found that even with 2.8 I was getting an error saying that I didn't have the comtypes module. After downloading and installing comtypes I now have Ulipad's shell running 2.6.2 and

Re: [Tutor] concerning help() function

2009-07-31 Thread David
Thanks to you all -- good stuff, as always! David Alan Gauld wrote: >> help('operator') >> >> I figured this by trial and error, and I am keen to find out when the > > Oops, always try before posting! And don;t assume... > > I juast vdid and you are right, it does give help on an unimported > mod

Re: [Tutor] mnemonics to better learn Python

2009-07-31 Thread Eduardo Vieira
On Thu, Jul 23, 2009 at 1:24 PM, Che M wrote: > > >> Date: Thu, 23 Jul 2009 14:05:36 +0800 >> From: ld...@gmx.net >> To: Tutor@python.org >> Subject: [Tutor] mnemonics to better learn Python >> >> Dear List, >> >> in order to memorize which Python sequences are mutable or immutable, I >> focused on

Re: [Tutor] mnemonics to better learn Python

2009-07-31 Thread Alan Gauld
"Eduardo Vieira" wrote Hello, would anybody have a good memorization technique for boolean results? Like when using 'or'/'and' what it returns when both are false, the last is false, etc? Hmm, I don't try to remember those, I just work it out based on the meaning. A and B is true only if

Re: [Tutor] mnemonics to better learn Python

2009-07-31 Thread Robert Lummis
Understand that "if A or B" is short for the phrase "if either A or B is true", or more fully "if A is true or B is true". When I add "is true" then the logic seems obvious to me without memorizing anything. Likewise, "if A and B" means "if A and B are both true", which is the same as "if A is tru

Re: [Tutor] mnemonics to better learn Python

2009-07-31 Thread Dave Angel
Eduardo Vieira wrote: Hello, would anybody have a good memorization technique for boolean results? Like when using 'or'/'and' what it returns when both are false, the last is false, etc? I find it so hard to remember that... Eduardo I don't blame you for finding it hard to remember. The

Re: [Tutor] mnemonics to better learn Python

2009-07-31 Thread Che M
> To: tutor@python.org > From: alan.ga...@btinternet.com > Date: Fri, 31 Jul 2009 17:09:48 +0100 > Subject: Re: [Tutor] mnemonics to better learn Python > > > "Eduardo Vieira" wrote > > > Hello, would anybody have a good memorization technique for boolean > > results? Like when using 'or'/'a

Re: [Tutor] mnemonics to better learn Python

2009-07-31 Thread Eduardo Vieira
On Fri, Jul 31, 2009 at 12:27 PM, Che M wrote: > > >> To: tutor@python.org >> From: alan.ga...@btinternet.com >> Date: Fri, 31 Jul 2009 17:09:48 +0100 >> Subject: Re: [Tutor] mnemonics to better learn Python >> >> >> "Eduardo Vieira" wrote >> >> > Hello, would anybody have a good memorization tech

Re: [Tutor] mnemonics to better learn Python

2009-07-31 Thread Alan Gauld
"Eduardo Vieira" wrote Like in the IDLE 2 and 4 and 0 Result: 0 Ah! Now I see. Its the results of short-circuit evaluation you want a nmemonic for, not the and/or logic itself I agree thats much harder to figure out, you do kind of have to work through the tests until the first failur