Re: [Tutor] bad name in module

2013-05-10 Thread Dave Angel
On 05/10/2013 01:45 AM, Jim Mooney wrote: I have a simple program, below, to create a specified list of random integers, which works fine. I saved it to Lib as makeRandomList.py, then imported it to a sorter.py program, like so. The import doesn't fail: import makeRandomList newRandomList = cre

Re: [Tutor] bad name in module

2013-05-09 Thread Alan Gauld
On 10/05/13 06:45, Jim Mooney wrote: import makeRandomList newRandomList = createRandomList() As with any other module you need to specify the module when using its contents: newRandomList = makeRandomList.createRandomList() BTW. A better name for the module is probably just randomlist

[Tutor] bad name in module

2013-05-09 Thread Jim Mooney
I have a simple program, below, to create a specified list of random integers, which works fine. I saved it to Lib as makeRandomList.py, then imported it to a sorter.py program, like so. The import doesn't fail: import makeRandomList newRandomList = createRandomList() But I then get the follow