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
2ca24336
Kaydet (Commit)
2ca24336
authored
Ock 04, 2003
tarafından
Raymond Hettinger
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
SF bug #651149: Review libshelve.tex when possible
Minor fixes to markup, spelling, parameter names, and abbreviations.
üst
1061e727
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
libshelve.tex
Doc/lib/libshelve.tex
+6
-6
No files found.
Doc/lib/libshelve.tex
Dosyayı görüntüle @
2ca24336
...
...
@@ -44,7 +44,7 @@ Restrictions:
\item
The choice of which database package will be used
(
e.g.
\refmodule
{
dbm
}
or
\refmodule
{
gdbm
}
) depends on which interface
(
such as
\refmodule
{
dbm
}
or
\refmodule
{
gdbm
}
) depends on which interface
is available. Therefore it is not safe to open the database directly
using
\refmodule
{
dbm
}
. The database is also (unfortunately) subject
to the limitations of
\refmodule
{
dbm
}
, if it is used --- this means
...
...
@@ -72,14 +72,14 @@ requires knowledge about the database implementation used.
\begin{classdesc}
{
Shelf
}{
dict
\optional
{
, binary=False
}}
A subclass of
\class
{
UserDict.DictMixin
}
which stores pickled values in the
\var
{
dict
}
object. If the
\var
{
binary
}
parameter is
\co
nstant
{
True
}
, binary
\var
{
dict
}
object. If the
\var
{
binary
}
parameter is
\co
de
{
True
}
, binary
pickles will be used. This can provide much more compact storage than plain
text pickles, depending on the nature of the objects stored in the databse.
text pickles, depending on the nature of the objects stored in the datab
a
se.
\end{classdesc}
\begin{classdesc}
{
BsdDbShelf
}{
dict
\optional
{
, binary=False
}}
A subclass of
\class
{
Shelf
}
which exposes
\method
{
first
}
,
\method
{
next
}
,
{}
\method
{
previous
}
,
\method
{
last
}
and
\method
{
set
_
location
}
which are
\method
{
previous
}
,
\method
{
last
}
and
\method
{
set
_
location
}
which are
available in the
\module
{
bsddb
}
module but not in other database modules.
The
\var
{
dict
}
object passed to the constructor must support those methods.
This is generally accomplished by calling one of
\function
{
bsddb.hashopen
}
,
...
...
@@ -88,8 +88,8 @@ This is generally accomplished by calling one of \function{bsddb.hashopen},
class.
\end{classdesc}
\begin{classdesc}
{
DbfilenameShelf
}{
dict
\optional
{
, flag='c'
}
\optional
{
, binary=False
}}
A subclass of
\class
{
Shelf
}
which accepts a
filename
instead of a dict-like
\begin{classdesc}
{
DbfilenameShelf
}{
filename
\optional
{
, flag='c'
\optional
{
, binary=False
}
}}
A subclass of
\class
{
Shelf
}
which accepts a
\var
{
filename
}
instead of a dict-like
object. The underlying file will be opened using
\function
{
anydbm.open
}
.
By default, the file will be created and opened for both read and write.
The optional
\var
{
binary
}
parameter has the same interpretation as for the
...
...
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