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
ab357ecf
Kaydet (Commit)
ab357ecf
authored
Mar 02, 2001
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Label classes and exceptions explicitly in the documentation (for their
*desc environments).
üst
0539bfaa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
17 deletions
+19
-17
python.perl
Doc/perl/python.perl
+4
-2
python.sty
Doc/texinputs/python.sty
+15
-15
No files found.
Doc/perl/python.perl
Dosyayı görüntüle @
ab357ecf
...
...
@@ -882,7 +882,7 @@ sub do_env_excdesc{
local($_) = @_;
my $excname = next_argument();
my $idx = make_str_index_entry("<tt class='
exception
'>$excname</tt>");
return "<dl><dt><b>$idx</b>\n<dd>" . $_ . '
</
dl
>
'
return "<dl><dt><b>
exception
$idx</b>\n<dd>" . $_ . '
</
dl
>
'
}
sub do_env_fulllineitems{ return do_env_itemize(@_); }
...
...
@@ -895,7 +895,9 @@ sub handle_classlike_descriptor{
$idx = make_str_index_entry(
"<tt class='
$what
'>$THIS_CLASS</tt> ($what in $THIS_MODULE)" );
$idx =~ s/ \(.*\)//;
return "<dl><dt><b>$idx</b> (<var>$arg_list</var>)\n<dd>" . $_ . '
</
dl
>
';
return ("<dl><dt><b>$what $idx</b> (<var>$arg_list</var>)\n<dd>"
. $_
. '
</
dl
>
');
}
sub do_env_classdesc{
...
...
Doc/texinputs/python.sty
Dosyayı görüntüle @
ab357ecf
...
...
@@ -116,10 +116,10 @@
\sloppy
\parindent
= 0mm
\parskip
= 2mm
\hbadness
= 5000
% don't print trivial gripes
\hbadness
= 5000
% don't print trivial gripes
\pagestyle
{
empty
}
% start this way; change for
\pagenumbering
{
roman
}
% ToC & chapters
\pagestyle
{
empty
}
% start this way; change for
\pagenumbering
{
roman
}
% ToC & chapters
% Use this to set the font family for headers and other decor:
\newcommand
{
\py
@HeaderFamily
}{
\sffamily
}
...
...
@@ -598,7 +598,7 @@
% Using \renewcommand doesn't work for this, for unknown reasons:
\global\def\py
@thisclass
{
#1
}
\begin{fulllineitems}
\item
[
\code
{
\bfcode
{
#1
}
(
\py
@varvars
{
#2
}
)
}
%
\item
[
\
strong
{
class
}
\
code
{
\bfcode
{
#1
}
(
\py
@varvars
{
#2
}
)
}
%
\index
{
#1@
{
\py
@idxcode
{
#1
}}
(class in
\py
@thismodule)
}
]
}{
\end{fulllineitems}
}
...
...
@@ -608,7 +608,7 @@
% Using \renewcommand doesn't work for this, for unknown reasons:
\global\def\py
@thisclass
{
#1
}
\begin{fulllineitems}
\item
[
\code
{
\bfcode
{
#1
}
(
\py
@varvars
{
#2
}
)
}
%
\item
[
\
strong
{
exception
}
\
code
{
\bfcode
{
#1
}
(
\py
@varvars
{
#2
}
)
}
%
\index
{
#1@
{
\py
@idxcode
{
#1
}}
(exception in
\py
@thismodule)
}
]
}{
\end{fulllineitems}
}
...
...
@@ -678,7 +678,7 @@
% -- for constructor information, use excclassdesc instead
\newenvironment
{
excdesc
}
[1]
{
\begin{fulllineitems}
\item
[
\bfcode
{
#1
}
%
\item
[
\
strong
{
exception
}
\
bfcode
{
#1
}
%
\index
{
#1@
{
\py
@idxcode
{
#1
}}
(exception in
\py
@thismodule)
}
]
}{
\end{fulllineitems}
}
...
...
@@ -753,11 +753,11 @@
}{
\newcommand
{
\py
@url
}
[1]
{{
%
\pdfannotlink
attr
{
/Border [0 0 0]
}
user
{
/S /URI /URI (#1)
}
%
\py
@LinkColor
%
color of the link text
\py
@LinkColor
%
color of the link text
\mbox
{
\small\textsf
{
#1
}}
%
\py
@NormalColor
%
Turn it back off; these are declarative
\pdfendlink
}
%
and don't appear bound to the current
}
%
formatting "box".
\py
@NormalColor
%
Turn it back off; these are declarative
\pdfendlink
}
%
and don't appear bound to the current
}
%
formatting "box".
}
\let\url
=
\py
@url
\newcommand
{
\email
}
[1]
{{
\small\textsf
{
#1
}}}
...
...
@@ -791,11 +791,11 @@
\newcommand
{
\member
}
[1]
{
\texttt
{
#1
}}
\newcommand
{
\method
}
[1]
{
\texttt
{
#1
}}
\newcommand
{
\pytype
}
[1]
{
#1
}
% built-in Python type
\newcommand
{
\pytype
}
[1]
{
#1
}
% built-in Python type
\newcommand
{
\cfunction
}
[1]
{
\texttt
{
#1
}}
\newcommand
{
\ctype
}
[1]
{
\texttt
{
#1
}}
% C struct or typedef name
\newcommand
{
\cdata
}
[1]
{
\texttt
{
#1
}}
% C variable, typically global
\newcommand
{
\ctype
}
[1]
{
\texttt
{
#1
}}
% C struct or typedef name
\newcommand
{
\cdata
}
[1]
{
\texttt
{
#1
}}
% C variable, typically global
\newcommand
{
\mimetype
}
[1]
{{
\small\textsf
{
#1
}}}
% The \! is a "negative thin space" in math mode.
...
...
@@ -809,11 +809,11 @@
\index
{
#1@
{
#1
}}
%
\index
{
environment variables!
{
#1
}}
%
}
\newcommand
{
\makevar
}
[1]
{
#1
}
% variable in a Makefile
\newcommand
{
\makevar
}
[1]
{
#1
}
% variable in a Makefile
\newcommand
{
\character
}
[1]
{
\samp
{
#1
}}
% constants defined in Python modules or C headers, not language constants:
\newcommand
{
\constant
}
[1]
{
\code
{
#1
}}
% manifest constant, not syntactic
\newcommand
{
\constant
}
[1]
{
\code
{
#1
}}
% manifest constant, not syntactic
\newcommand
{
\manpage
}
[2]
{{
\emph
{
#1
}
(#2)
}}
\newcommand
{
\pep
}
[1]
{
PEP #1
\index
{
Python Enhancement Proposals!PEP #1
}}
...
...
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