[Tutor] How does one construct a module for import?

Steven D'Aprano steve at pearwood.info
Mon Jun 2 17:35:12 CEST 2014


On Mon, Jun 02, 2014 at 03:41:15PM +0100, Sydney Shall wrote:
> Alan,
> Please forgive me, but I am still unclear.
> Do you mean that I must add a file called __ini__.py to my folder or do 
> you mean that each file that I wish to import should have that statement 
> [ __init__.py ] immediately after (I presume) my def statement?

Neither. Forget about __init__.py, that doesn't seem to be related to 
your problem. 



-- 
Steven


More information about the Tutor mailing list