[Tutor] Gmane not picking up messages lately

2014-04-02 Thread DaveA
Gmane doesn't seem to be getting messages from either python tutor or python list, for the last day or two. I'm using NNTP NewsReader on Android, and there's no new messages.  I'm sure it's not just an extraordinary lull, because I am still getting tutor emails.  Anybody else want to comment?

Re: [Tutor] Fwd: Python bingo game.

2014-04-02 Thread zhijun long
>>> matrix = [ ... [1, 2, 5, 7, 9], ... [25, 67, 78, 23, 34], ... [33, 22, 66, 88, 98], ... [32, 31, 41, 56, 78], ... [21, 34, 58, 99, 76], ... ] >>> for item in [[row[i] for row in matrix] for i in range(5)]: ... print item ... [1, 25, 33, 32, 21

Re: [Tutor] Vending machine problem.

2014-04-02 Thread bob gailer
On 4/2/2014 5:06 PM, Sebastien Gomez wrote: i am using python 3.2 windows vista This is my last email to you. Communicating with you is way too time consuming; you consistently do not provide all the information I request, nor do you include the tutor list in your responses. If you want any

Re: [Tutor] Vending machine problem.

2014-04-02 Thread bob gailer
On 4/1/2014 5:09 PM, Sebastien Gomez wrote: I have started my code but there are some errors including indentation and syntax, please fix it if you can: Did you miss my request that you send a copy to the tutor list (tutor@python.org)? Were there any more specifications in the assignment? P

Re: [Tutor] conditional execution

2014-04-02 Thread Patti Scott
Thank you Emile, Zach, Chris and d.   I am actually catching lots of my typos before I try to run anything ... From: spir To: tutor@python.org Sent: Wednesday, April 2, 2014 3:18 AM Subject: Re: [Tutor] conditional execution On 04/01/2014 06:24 PM, Zac

[Tutor] unittest decorators

2014-04-02 Thread Albert-Jan Roskam
Hi,   The unittest module has some really handy decorators: @unittest.skip and @unittest.skipIf. I use the former for temporary TODO or FIXME things, but I use the latter for a more permanent thing: @unittest.skipif(sys.version_info()[0] > 2). Yet, in the test summary you just see error, skipped

Re: [Tutor] conditional execution

2014-04-02 Thread spir
On 04/01/2014 06:24 PM, Zachary Ware wrote: Hi Patti, On Tue, Apr 1, 2014 at 11:07 AM, Patti Scott wrote: I've been cheating: comment out the conditional statement and adjust the indents. But, how do I make my program run with if __name__ == 'main': main() at the end? I thought I understood