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
30b6e823
Kaydet (Commit)
30b6e823
authored
Nis 17, 2003
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Added documentation for the handle_pi() method, based on SF patch #662464.
Closes SF bug #659188, patch #662464.
üst
816653fc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
libhtmlparser.tex
Doc/lib/libhtmlparser.tex
+15
-1
No files found.
Doc/lib/libhtmlparser.tex
Dosyayı görüntüle @
30b6e823
...
...
@@ -123,8 +123,22 @@ inside the \code{<!}...\code{>} markup.It is intended to be overridden
by a derived class; the base class implementation does nothing.
\end{methoddesc}
\begin{methoddesc}
{
handle
_
pi
}{
data
}
Method called when a processing instruction is encountered. The
\var
{
data
}
parameter will contain the entire processing instruction.
For example, for the processing instruction
\code
{
<?proc color='red'>
}
,
this method would be called as
\code
{
handle
_
pi("proc color='red'")
}
. It
is intended to be overridden by a derived class; the base class
implementation does nothing.
\note
{
The
\class
{
HTMLParser
}
class uses the SGML syntactic rules for
processing instruction. An XHTML processing instruction using the
trailing
\character
{
?
}
will cause the
\character
{
?
}
to be included in
\var
{
data
}
.
}
\end{methoddesc}
\subsection
{
Example HTML Parser
\label
{
htmlparser-example
}}
\subsection
{
Example HTML Parser
Application
\label
{
htmlparser-example
}}
As a basic example, below is a very basic HTML parser that uses the
\class
{
HTMLParser
}
class to print out tags as they are encountered:
...
...
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