[Tutor] question 1

2014-09-20 Thread Clayton Kirkwood
I'm ramping slowly unfortunately. How does one go about knowing which module to import to make certain functions work? I have a read() that fails because there is no definition for it. I am using the Wing IDE. I have traversed much of the developer's guide and can't find any certainty.

Re: [Tutor] question 1

2014-09-20 Thread Danny Yoo
On Sat, Sep 20, 2014 at 3:20 PM, Clayton Kirkwood c...@godblessthe.us wrote: I’m ramping slowly unfortunately. How does one go about knowing which module to import to make certain functions work? I have a read() that fails because there is no definition for it. Specific details may help here.

Re: [Tutor] question 1

2014-09-20 Thread Danny Yoo
Secondarily, why can you import a module without it importing all of its daughters? The act of importing a module is recursive: if you import a module, and that module itself has import statements, then Python will do the import of the child modules too. And so forth. Hi Deb, Oh! By the

Re: [Tutor] question 1

2014-09-20 Thread Steven D'Aprano
Hi Clayton, and welcome. My responses are interleaved between your questions below. On Sat, Sep 20, 2014 at 03:20:09PM -0700, Clayton Kirkwood wrote: I'm ramping slowly unfortunately. How does one go about knowing which module to import to make certain functions work? Experience, practice,