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
0999a115
Kaydet (Commit)
0999a115
authored
May 09, 2007
tarafından
Neal Norwitz
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add markup for True/False. Will backport
üst
fa9be8c2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
libpprint.tex
Doc/lib/libpprint.tex
+4
-4
No files found.
Doc/lib/libpprint.tex
Dosyayı görüntüle @
0999a115
...
...
@@ -118,7 +118,7 @@ were added]{2.4}
\begin{funcdesc}
{
isreadable
}{
object
}
Determine if the formatted representation of
\var
{
object
}
is
``readable,'' or can be used to reconstruct the value using
\function
{
eval()
}
\bifuncindex
{
eval
}
. This always returns
false
for
\function
{
eval()
}
\bifuncindex
{
eval
}
. This always returns
\code
{
False
}
for
recursive objects.
\begin{verbatim}
...
...
@@ -176,10 +176,10 @@ objects don't need to be created.
\begin{methoddesc}
[PrettyPrinter]
{
isreadable
}{
object
}
Determine if the formatted representation of the object is
``readable,'' or can be used to reconstruct the value using
\function
{
eval()
}
\bifuncindex
{
eval
}
. Note that this returns
false
for
\function
{
eval()
}
\bifuncindex
{
eval
}
. Note that this returns
\code
{
False
}
for
recursive objects. If the
\var
{
depth
}
parameter of the
\class
{
PrettyPrinter
}
is set and the object is deeper than allowed,
this returns
false
.
this returns
\code
{
False
}
.
\end{methoddesc}
\begin{methoddesc}
[PrettyPrinter]
{
isrecursive
}{
object
}
...
...
@@ -199,7 +199,7 @@ object to be presented. The second is a dictionary which contains the
context (direct and indirect containers for
\var
{
object
}
that are
affecting the presentation) as the keys; if an object needs to be
presented which is already represented in
\var
{
context
}
, the third
return value should be
true
. Recursive calls to the
\method
{
format()
}
return value should be
\code
{
True
}
. Recursive calls to the
\method
{
format()
}
method should add additional entries for containers to this
dictionary. The third argument,
\var
{
maxlevels
}
, gives the requested
limit to recursion; this will be
\code
{
0
}
if there is no requested
...
...
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