469,949 Members | 2,699 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,949 developers. It's quick & easy.

packages

Hello,

I read about modules and packages in the tutorial. I think I understand
how to use packages and modules, even I know how to create a module (as
far I understand it's a simple .py) file , but I don't know how can I
create a package and when should I do it.

Where should I look for more information?

Mage

Jul 19 '05 #1
1 1265
Le Mon, 18 Apr 2005 20:29:39 +0200, Mage a écrit :
Hello,

I read about modules and packages in the tutorial. I think I understand
how to use packages and modules, even I know how to create a module (as
far I understand it's a simple .py) file , but I don't know how can I
create a package and when should I do it. The standard library contains some packages : email, xml, distutils ...
Read the __init__.py in the directory "package-name".
Where should I look for more information?

Mage

example of use :
import distutils
help(distutils)
help(distutils.sysconfig)
Traceback (most recent call last):
File "<stdin>", line 1, in ?
AttributeError: 'module' object has no attribute 'sysconfig'
import distutils.sysconfig
help(distutils.sysconfig)
distutils.sysconfig.get_python_lib(standard_lib=Tr ue)
'/home/fp2x/local/lib/python2.4'
distutils.sysconfig.get_python_lib(standard_lib=Fa lse)
'/home/fp2x/local/lib/python2.4/site-packages'
Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Chris Barker | last post: by
15 posts views Thread by Nick Coghlan | last post: by
2 posts views Thread by Peter Saffrey | last post: by
1 post views Thread by Kwikrick | last post: by
reply views Thread by Rich Burridge | last post: by
7 posts views Thread by Oliver Elphick | last post: by
reply views Thread by giovanni gherdovich | last post: by
5 posts views Thread by John Ladasky | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.