Re: [Tutor] accessing modules found throughout a package?

2015-10-17 Thread Steven D'Aprano
On Sat, Oct 17, 2015 at 08:20:14PM -0500, James Hartley wrote: > In my current project, I am developing a package. It makes sense to embed > tests throughout the package's directory structure as they should be part > of the package & its distribution. It may raise eyebrows that I have tests > spr

Re: [Tutor] accessing modules found throughout a package?

2015-10-17 Thread Ben Finney
James Hartley writes: > In my current project, I am developing a package. It makes sense to > embed tests throughout the package's directory structure as they > should be part of the package & its distribution. Yet, as you're finding, it also causes headaches. First, know that you don't need to

[Tutor] accessing modules found throughout a package?

2015-10-17 Thread James Hartley
In my current project, I am developing a package. It makes sense to embed tests throughout the package's directory structure as they should be part of the package & its distribution. It may raise eyebrows that I have tests sprinkled through various directories, but there are reasons for keeping s

Re: [Tutor] I don't understand why this program is said to be "not defined" when I test it.

2015-10-17 Thread Bob Gailer
Also: Briefly describe problem 22 Show us what you did to test the program It would be better to test for integer before doing a numeric comparison There is no need ever to compare a boolean expression to true or false. All you need is either if condition or if not condition. A good short cut for a