Re: Changing Lutz's mydir from Edition 2, Learning Python

2010-01-17 Thread W. eWatson
Chris Rebert wrote: On Sun, Jan 17, 2010 at 12:11 PM, W. eWatson wrote: See Subject. The code is below with a few changes I made at the bottom by inserting import string import numpy module = raw_input("Enter module name: ") listing(module) As the error says, strings have no __na

Re: Changing Lutz's mydir from Edition 2, Learning Python

2010-01-17 Thread Chris Rebert
On Sun, Jan 17, 2010 at 12:11 PM, W. eWatson wrote: > See Subject. The code is below with a few changes I made at the bottom by > inserting >    import string >    import numpy > >    module = raw_input("Enter module name: ") >    listing(module) As the error says, strings have no __name__ attrib

Re: Changing Lutz's mydir from Edition 2, Learning Python

2010-01-17 Thread Arnaud Delobelle
"W. eWatson" writes: > See Subject. The code is below with a few changes I made at the bottom > by inserting > import string > import numpy > > module = raw_input("Enter module name: ") replace this line with: module_name = raw_input("Enter module name: ") module = __i

Changing Lutz's mydir from Edition 2, Learning Python

2010-01-17 Thread W. eWatson
See Subject. The code is below with a few changes I made at the bottom by inserting import string import numpy module = raw_input("Enter module name: ") listing(module) I thought I'd see if I could convert this to a program instead, which asks the user for the module. As prom