newbie question:

Azratax archicanis at yahoo.com
Mon Aug 7 17:59:54 EDT 2000


      i have made a simple module with a function (init() )  that opens a file 
to an object. I imported this module and ran init() . Thought i get no error, 
the fileobject is nowhere to be found. i have tried a dir() through every 
module yet cant find any object with that name... what have i done wrong?
the code is (code in c:\python16\azrand\itemgen.py):

import whrandom
import pickle
import string
def init():
    mainlist = open('lists/main.txt') 




      -Azratax



More information about the Python-list mailing list