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
0d6e8cde
Kaydet (Commit)
0d6e8cde
authored
Eyl 10, 2003
tarafından
Raymond Hettinger
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
SF bug #802302: Invalid documentation for dbhash.
The documentation severely departed for the actual implementation.
üst
bed92ee2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
10 deletions
+9
-10
libdbhash.tex
Doc/lib/libdbhash.tex
+9
-10
No files found.
Doc/lib/libdbhash.tex
Dosyayı görüntüle @
0d6e8cde
...
...
@@ -66,23 +66,22 @@ available in addition to the standard methods.
begin a reverse-order traversal; see
\method
{
previous()
}
.
\end{methoddesc}
\begin{methoddesc}
[dbhash]
{
next
}{
key
}
Returns the key
that follows
\var
{
key
}
in th
e traversal. The
\begin{methoddesc}
[dbhash]
{
next
}{}
Returns the key
next key in a databas
e traversal. The
following code prints every key in the database
\code
{
db
}
, without
having to create a list in memory that contains them all:
\begin{verbatim}
k = db.first()
while k != None:
print k
k = db.next(k)
print db.first()
for i in xrange(1, len(d)):
print db.next()
\end{verbatim}
\end{methoddesc}
\begin{methoddesc}
[dbhash]
{
previous
}{
key
}
Return
the key that comes before
\var
{
key
}
in a forward-traversal of
the database. In conjunction with
\method
{
last()
}
, this may be used
to implement
a reverse-order traversal.
\begin{methoddesc}
[dbhash]
{
previous
}{}
Return
s the previous key in a forward-traversal of the database.
In conjunction with
\method
{
last()
}
, this may be used to implement
a reverse-order traversal.
\end{methoddesc}
\begin{methoddesc}
[dbhash]
{
sync
}{}
...
...
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