|
|
|
@ -31,7 +31,7 @@
|
|
|
|
|
"\n",
|
|
|
|
|
"*Packages* contain subpackages of modules. They are directories and provide the namespace for modules.\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"For example, let's have this package sound, a subpackage effects and the modules echo and surround:\n",
|
|
|
|
|
"For example, let's have this package babel, a subpackage messages and the modules plurals and catalog:\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"<code>\n",
|
|
|
|
|
"babel/\n",
|
|
|
|
@ -98,7 +98,9 @@
|
|
|
|
|
"source": [
|
|
|
|
|
"To write a module, it is just needed to include the code in a file ended with \".py\" and the name of the file is the name of the module.\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"Packages are directories that should have a file \\_\\_.init\\_\\_.py, that can be an empty file or contain initialization code."
|
|
|
|
|
"Packages are directories that should have a file \\_\\_.init\\_\\_.py, that can be an empty file or contain initialization code.\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"Read this if you want to distribute your modules [https://wiki.python.org/moin/CheeseShopTutorial]"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|