[Tutor] unclear topic

2013-01-14 Thread Matthew Ngaha
hey guys, this is not really a Python question. When ever im doing a tutorial, it could be pygame or some gui application, i usually find everything straight forward until the demonstration involves drawing. Then maths is applied and i can't follow along as easily. In the end by commenting out

Re: [Tutor] unclear topic

2013-01-14 Thread Prasad, Ramit
Matthew Ngaha wrote: hey guys, this is not really a Python question. When ever im doing a tutorial, it could be pygame or some gui application, i usually find everything straight forward until the demonstration involves drawing. Then maths is applied and i can't follow along as easily. In the

Re: [Tutor] unclear topic

2013-01-14 Thread Kal Sze
On 15 January 2013 05:19, Prasad, Ramit ramit.pra...@jpmorgan.com wrote: Matthew Ngaha wrote: hey guys, this is not really a Python question. When ever im doing a tutorial, it could be pygame or some gui application, i usually find everything straight forward until the demonstration

[Tutor] Why doesn't line n execute before line n+1?

2013-01-14 Thread DoanVietTrungAtGmail
Dear tutors In learning about the __call__ magic method, in the code below I deliberately omitted __call__ and, as expected, I got the error message TypeError: 'Test' object is not callable. But I am surprised that the print statement was not executed, even though the interpreter sees it first.

Re: [Tutor] Why doesn't line n execute before line n+1?

2013-01-14 Thread Mitya Sirenef
On Mon 14 Jan 2013 10:14:24 PM EST, DoanVietTrungAtGmail wrote: Dear tutors In learning about the __call__ magic method, in the code below I deliberately omitted __call__ and, as expected, I got the error message TypeError: 'Test' object is not callable. But I am surprised that the print

Re: [Tutor] Why doesn't line n execute before line n+1?

2013-01-14 Thread DoanVietTrungAtGmail
Yes you are right, it was printed. I think my eyes are tired. I left the PC, came back, and saw your reply plus the printed line. Thanks Mitya, and I apologise to everyone about false alarm! The answer of 42 was staring at me and I didn't see it. Trung On Tue, Jan 15, 2013 at 2:33 PM, Mitya