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
916d8f87
Kaydet (Commit)
916d8f87
authored
Nis 13, 1998
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
No more threats, just list the new methods under "AST Objects".
üst
503d8d66
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
4 deletions
+48
-4
libparser.tex
Doc/lib/libparser.tex
+24
-2
libparser.tex
Doc/libparser.tex
+24
-2
No files found.
Doc/lib/libparser.tex
Dosyayı görüntüle @
916d8f87
...
@@ -271,8 +271,6 @@ to the descriptions of each function for detailed information.
...
@@ -271,8 +271,6 @@ to the descriptions of each function for detailed information.
AST objects returned by
\function
{
expr()
}
,
\function
{
suite()
}
and
AST objects returned by
\function
{
expr()
}
,
\function
{
suite()
}
and
\function
{
sequence2ast()
}
have no methods of their own.
\function
{
sequence2ast()
}
have no methods of their own.
Some of the functions defined which accept an AST object as their
first argument may change to object methods in the future.
Ordered and equality comparisons are supported between AST objects.
Ordered and equality comparisons are supported between AST objects.
Pickling of AST objects (using the
\module
{
pickle
}
module) is also
Pickling of AST objects (using the
\module
{
pickle
}
module) is also
...
@@ -284,6 +282,30 @@ The type of the objects returned by \function{expr()},
...
@@ -284,6 +282,30 @@ The type of the objects returned by \function{expr()},
\end{datadesc}
\end{datadesc}
AST objects have the following methods:
\begin{methoddesc}
[AST]
{
compile
}{
\optional
{
filename
}}
Same as
\code
{
compileast(
\var
{
ast
}
,
\var
{
filename
}
)
}
.
\end{methoddesc}
\begin{methoddesc}
[AST]
{
isexpr
}{}
Same as
\code
{
isexpr(
\var
{
ast
}
)
}
.
\end{methoddesc}
\begin{methoddesc}
[AST]
{
issuite
}{}
Same as
\code
{
issuite(
\var
{
ast
}
)
}
.
\end{methoddesc}
\begin{methoddesc}
[AST]
{
tolist
}{
\optional
{
line
_
info
}}
Same as
\code
{
ast2list(
\var
{
ast
}
,
\var
{
line
_
info
}
)
}
.
\end{methoddesc}
\begin{methoddesc}
[AST]
{
totuple
}{
\optional
{
line
_
info
}}
Same as
\code
{
ast2tuple(
\var
{
ast
}
,
\var
{
line
_
info
}
)
}
.
\end{methoddesc}
\subsection
{
Examples
}
\subsection
{
Examples
}
\nodename
{
AST Examples
}
\nodename
{
AST Examples
}
...
...
Doc/libparser.tex
Dosyayı görüntüle @
916d8f87
...
@@ -271,8 +271,6 @@ to the descriptions of each function for detailed information.
...
@@ -271,8 +271,6 @@ to the descriptions of each function for detailed information.
AST objects returned by
\function
{
expr()
}
,
\function
{
suite()
}
and
AST objects returned by
\function
{
expr()
}
,
\function
{
suite()
}
and
\function
{
sequence2ast()
}
have no methods of their own.
\function
{
sequence2ast()
}
have no methods of their own.
Some of the functions defined which accept an AST object as their
first argument may change to object methods in the future.
Ordered and equality comparisons are supported between AST objects.
Ordered and equality comparisons are supported between AST objects.
Pickling of AST objects (using the
\module
{
pickle
}
module) is also
Pickling of AST objects (using the
\module
{
pickle
}
module) is also
...
@@ -284,6 +282,30 @@ The type of the objects returned by \function{expr()},
...
@@ -284,6 +282,30 @@ The type of the objects returned by \function{expr()},
\end{datadesc}
\end{datadesc}
AST objects have the following methods:
\begin{methoddesc}
[AST]
{
compile
}{
\optional
{
filename
}}
Same as
\code
{
compileast(
\var
{
ast
}
,
\var
{
filename
}
)
}
.
\end{methoddesc}
\begin{methoddesc}
[AST]
{
isexpr
}{}
Same as
\code
{
isexpr(
\var
{
ast
}
)
}
.
\end{methoddesc}
\begin{methoddesc}
[AST]
{
issuite
}{}
Same as
\code
{
issuite(
\var
{
ast
}
)
}
.
\end{methoddesc}
\begin{methoddesc}
[AST]
{
tolist
}{
\optional
{
line
_
info
}}
Same as
\code
{
ast2list(
\var
{
ast
}
,
\var
{
line
_
info
}
)
}
.
\end{methoddesc}
\begin{methoddesc}
[AST]
{
totuple
}{
\optional
{
line
_
info
}}
Same as
\code
{
ast2tuple(
\var
{
ast
}
,
\var
{
line
_
info
}
)
}
.
\end{methoddesc}
\subsection
{
Examples
}
\subsection
{
Examples
}
\nodename
{
AST Examples
}
\nodename
{
AST Examples
}
...
...
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