Re: [Tutor] unittest decorators

2014-04-04 Thread Albert-Jan Roskam
> From: Peter Otten <__pete...@web.de> >To: tutor@python.org >Sent: Thursday, April 3, 2014 3:13 PM >Subject: Re: [Tutor] unittest decorators > > >Albert-Jan Roskam wrote: > >> The unittest module has some really handy decorators: @unittest.skip >> and @unittest

Re: [Tutor] data driven programming

2014-04-04 Thread Alan Gauld
On 04/04/14 03:33, Alex Kleider wrote: And to some extent Python is an example of a data driven design since function (and method) calls are associated with dictionaries (ie Python namespaces). Can you elaborate, please, on what you mean by pointing out that the fact that Python's function and

Re: [Tutor] conditional execution

2014-04-04 Thread Peter Otten
spir wrote: > 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()

Re: [Tutor] unittests

2014-04-04 Thread Sydney Shall
I would like to thank both Steven and Danny for their explanations. They were much easier for me to understand than the documentation. I now think that I understand what I have to do and how I proceed. Thanks to you both for spending so much time on the answer. Sydney On 01/04/2014 18:54, Danny

Re: [Tutor] unittests

2014-04-04 Thread Albert-Jan Roskam
- Original Message - > From: Sydney Shall > To: tutor@python.org > Cc: > Sent: Friday, April 4, 2014 3:12 PM > Subject: Re: [Tutor] unittests > > I would like to thank both Steven and Danny for their explanations. > They were much easier for me to understand than the documentation. > I n

Re: [Tutor] unittests

2014-04-04 Thread Sydney Shall
On 04/04/2014 14:55, Albert-Jan Roskam wrote: - Original Message - From: Sydney Shall To: tutor@python.org Cc: Sent: Friday, April 4, 2014 3:12 PM Subject: Re: [Tutor] unittests I would like to thank both Steven and Danny for their explanations. They were much easier for me to understa

Re: [Tutor] data driven programming

2014-04-04 Thread Alex Kleider
On 2014-04-04 01:51, Alan Gauld wrote: On 04/04/14 03:33, Alex Kleider wrote: And to some extent Python is an example of a data driven design since function (and method) calls are associated with dictionaries (ie Python namespaces). Can you elaborate, please, on what you mean by pointing out