Python extension package namespace

Tu-Thach tuthach at aix11.unm.edu
Wed Apr 18 18:54:13 EDT 2001


Thanks for your reply.  I did have the __init__.py file under the 
directory to mark it as a package.  The Python interpreter complains that 
Riff2 entry not found.  Anyways, I deleted the directory and re-create it 
again and it works.  Thanks for you response.

Tu-Thach

Courageous (jkraska1 at san.rr.com) wrote:
: On 17 Apr 2001 00:09:08 GMT, tuthach at aix09.unm.edu (Tu-Thach) wrote:

: >I have written a simple test extension module for Python and called it 
: >testxyz.  What I'd like to know is how can I make the module so that when 
: >I call it from Python I can use
: >from test.testxyz import *

: You need to prep up your directory with "__init__.py"

: C//




More information about the Python-list mailing list