Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
7932ed0a
Kaydet (Commit)
7932ed0a
authored
Agu 11, 2000
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Added material about documenting packages, so that the use of module
markup for packages is clear.
üst
f4070637
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
doc.tex
Doc/doc/doc.tex
+20
-0
No files found.
Doc/doc/doc.tex
Dosyayı görüntüle @
7932ed0a
...
...
@@ -610,6 +610,26 @@ distribution, to create or maintain whole documents or sections.
\moduleauthor
{
Jane Doe
}{
jane.doe@frobnitz.org
}
\end{verbatim}
Python packages
\index
{
packages
}
--- collections of modules that can
be described as a unit --- are documented using the same markup as
modules. The name for a module in a package should be typed in
``fully qualified'' form (i.e., it should include the package name).
For example, a module ``foo'' in package ``bar'' should be marked as
\samp
{
\e
module
\{
bar.foo
\}
}
, and the beginning of the reference
section would appear as:
\begin{verbatim}
\section
{
\module
{
bar.foo
}
---
Module from the
\module
{
bar
}
package
}
\declaremodule
{
extension
}{
bar.foo
}
\modulesynopsis
{
Nifty module from the
\module
{
bar
}
package.
}
\moduleauthor
{
Jane Doe
}{
jane.doe@frobnitz.org
}
\end{verbatim}
Note that the name of a package is also marked using
\macro
{
module
}
.
\begin{macrodesc}
{
declaremodule
}{
\op
{
key
}
\p
{
type
}
\p
{
name
}}
Requires two parameters: module type (
\samp
{
standard
}
,
\samp
{
builtin
}
,
\samp
{
extension
}
, or
\samp
{}
), and the module
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment