Extending built-in language (Win 95)
charlie at intelligenesis.net
Mon Apr 10 17:53:49 CEST 2000
~ > ? No, you use open() instead, which just returns an instance of a file
~ > object. In the xxmodule, xx_new is used to make new instances, which
~ > can be called from Python as xx.new().
~ I've added xxmodule to the lib and recompiled. Entering:
~ a = xx.new()
~ just gives a name error on xx.
~ Have I missed something?
I think you need to import your module:
from xxmodule import *
~ (thanks for helping)
you're welcome (if it's the right answer :-] )
More information about the Python-list