Creating package in Python

Yossi Mor moryossi at barak-online.net
Sat Jul 28 06:33:15 EDT 2001


Hello

I am new with Python and i would like to ask several questions:

1. For creating a package i have to create a *.py script that will group
selected modules and contain the following script __init__.py. -> Can you
elaborate on this script definition.

2. I have tried to create a package that contains 2 modules and succeeded in
importing the package itself but not a module inside the package for example
'import pkg.fib1' - what was wrong ?

Thanks

Yossi






More information about the Python-list mailing list