Need help in creating a simple package in python

Yossi Mor ymor at checkpoint.com
Sun Jul 29 18:50:37 EDT 2001


Hi

Can you help me ?

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 (give an example how the script should
be written ).

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