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
2aefe8d7
Kaydet (Commit)
2aefe8d7
authored
Nis 28, 1998
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Document changed semantics -- open() now guesses the db type and error
is now a tuple of various and sundry exceptions.
üst
fc1f64d9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
4 deletions
+20
-4
libanydbm.tex
Doc/lib/libanydbm.tex
+10
-2
libanydbm.tex
Doc/libanydbm.tex
+10
-2
No files found.
Doc/lib/libanydbm.tex
Dosyayı görüntüle @
2aefe8d7
...
@@ -11,6 +11,12 @@ be used.
...
@@ -11,6 +11,12 @@ be used.
\begin{funcdesc}
{
open
}{
filename
\optional
{
, flag
\optional
{
, mode
}}}
\begin{funcdesc}
{
open
}{
filename
\optional
{
, flag
\optional
{
, mode
}}}
Open the database file
\var
{
filename
}
and return a corresponding object.
Open the database file
\var
{
filename
}
and return a corresponding object.
If the database file already exists, the
\module
{
whichdb
}
module is
used to determine its type and the appropriate module is used; if it
doesn't exist, the first module listed above that can be imported is
used.
The optional
\var
{
flag
}
argument can be
The optional
\var
{
flag
}
argument can be
\code
{
'r'
}
to open an existing database for reading only,
\code
{
'r'
}
to open an existing database for reading only,
\code
{
'w'
}
to open an existing database for reading and writing,
\code
{
'w'
}
to open an existing database for reading and writing,
...
@@ -24,8 +30,10 @@ only when the database has to be created. It defaults to octal
...
@@ -24,8 +30,10 @@ only when the database has to be created. It defaults to octal
\end{funcdesc}
\end{funcdesc}
\begin{excdesc}
{
error
}
\begin{excdesc}
{
error
}
An alternate name for the
\exception
{
error
}
exception defined by the
A tuple containing the exceptions that can be raised by each of the
underlying database implementation.
supported modules, with a unique exception
\exception
{
anydbm.error
}
as
the first item --- the latter is used when
\exception
{
anydbm.error
}
is
raised.
\end{excdesc}
\end{excdesc}
The object returned by
\function
{
open()
}
supports most of the same
The object returned by
\function
{
open()
}
supports most of the same
...
...
Doc/libanydbm.tex
Dosyayı görüntüle @
2aefe8d7
...
@@ -11,6 +11,12 @@ be used.
...
@@ -11,6 +11,12 @@ be used.
\begin{funcdesc}
{
open
}{
filename
\optional
{
, flag
\optional
{
, mode
}}}
\begin{funcdesc}
{
open
}{
filename
\optional
{
, flag
\optional
{
, mode
}}}
Open the database file
\var
{
filename
}
and return a corresponding object.
Open the database file
\var
{
filename
}
and return a corresponding object.
If the database file already exists, the
\module
{
whichdb
}
module is
used to determine its type and the appropriate module is used; if it
doesn't exist, the first module listed above that can be imported is
used.
The optional
\var
{
flag
}
argument can be
The optional
\var
{
flag
}
argument can be
\code
{
'r'
}
to open an existing database for reading only,
\code
{
'r'
}
to open an existing database for reading only,
\code
{
'w'
}
to open an existing database for reading and writing,
\code
{
'w'
}
to open an existing database for reading and writing,
...
@@ -24,8 +30,10 @@ only when the database has to be created. It defaults to octal
...
@@ -24,8 +30,10 @@ only when the database has to be created. It defaults to octal
\end{funcdesc}
\end{funcdesc}
\begin{excdesc}
{
error
}
\begin{excdesc}
{
error
}
An alternate name for the
\exception
{
error
}
exception defined by the
A tuple containing the exceptions that can be raised by each of the
underlying database implementation.
supported modules, with a unique exception
\exception
{
anydbm.error
}
as
the first item --- the latter is used when
\exception
{
anydbm.error
}
is
raised.
\end{excdesc}
\end{excdesc}
The object returned by
\function
{
open()
}
supports most of the same
The object returned by
\function
{
open()
}
supports most of the same
...
...
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