Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
6c46cafe
Commit
6c46cafe
authored
Aug 08, 1994
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added gdbm docs
parent
00635929
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
62 additions
and
0 deletions
+62
-0
Doc/lib.tex
Doc/lib.tex
+1
-0
Doc/lib/lib.tex
Doc/lib/lib.tex
+1
-0
Doc/lib/libgdbm.tex
Doc/lib/libgdbm.tex
+30
-0
Doc/libgdbm.tex
Doc/libgdbm.tex
+30
-0
No files found.
Doc/lib.tex
View file @
6c46cafe
...
@@ -74,6 +74,7 @@ language.
...
@@ -74,6 +74,7 @@ language.
\input
{
libunix
}
% UNIX ONLY
\input
{
libunix
}
% UNIX ONLY
\input
{
libdbm
}
\input
{
libdbm
}
\input
{
libfcntl
}
\input
{
libfcntl
}
\input
{
libgdbm
}
\input
{
libgrp
}
\input
{
libgrp
}
\input
{
libposix
}
\input
{
libposix
}
\input
{
libposixfile
}
% XXX this uses lineii which partparse.py doesn't know
\input
{
libposixfile
}
% XXX this uses lineii which partparse.py doesn't know
...
...
Doc/lib/lib.tex
View file @
6c46cafe
...
@@ -74,6 +74,7 @@ language.
...
@@ -74,6 +74,7 @@ language.
\input
{
libunix
}
% UNIX ONLY
\input
{
libunix
}
% UNIX ONLY
\input
{
libdbm
}
\input
{
libdbm
}
\input
{
libfcntl
}
\input
{
libfcntl
}
\input
{
libgdbm
}
\input
{
libgrp
}
\input
{
libgrp
}
\input
{
libposix
}
\input
{
libposix
}
\input
{
libposixfile
}
% XXX this uses lineii which partparse.py doesn't know
\input
{
libposixfile
}
% XXX this uses lineii which partparse.py doesn't know
...
...
Doc/lib/libgdbm.tex
0 → 100644
View file @
6c46cafe
\section
{
Built-in Module
\sectcode
{
gdbm
}}
\bimodindex
{
gdbm
}
Gdbm provides python programs with an interface to the GNU
\code
{
gdbm
}
database library. Gdbm objects are of the mapping type, so they can be
handled just like objects of the built-in
\dfn
{
dictionary
}
type,
except that keys and values are always strings, and printing a gdbm
object doesn't print the keys and values.
The module is based on the Dbm module, modified to use GDBM instead.
The module defines the following constant and functions:
\renewcommand
{
\indexsubitem
}{
(in module gdbm)
}
\begin{excdesc}
{
error
}
Raised on gdbm-specific errors, such as I/O errors.
\code
{
KeyError
}
is
raised for general mapping errors like specifying an incorrect key.
\end{excdesc}
\begin{funcdesc}
{
open
}{
filename
\,
rwmode
\,
filemode
}
Open a gdbm database and return a mapping object.
\var
{
filename
}
is
the name of the database file,
\var
{
rwmode
}
is
\code
{
'r'
}
,
\code
{
'w'
}
,
\code
{
'c'
}
, or
\code
{
'n'
}
for reader, writer (this also gives read
access), create (writer, but create the database if it doesnt already
exist) and newdb (which will always create a new database). Only one
writer may open a gdbm file and many readers may open the file. Readers
and writers can not open the gdbm file at the same time. Note that the
\code
{
GDBM
_
FAST
}
mode of opening the database is not supported.
\var
{
filemode
}
is the unix mode of the file, used only when a database is created.
\end{funcdesc}
Doc/libgdbm.tex
0 → 100644
View file @
6c46cafe
\section
{
Built-in Module
\sectcode
{
gdbm
}}
\bimodindex
{
gdbm
}
Gdbm provides python programs with an interface to the GNU
\code
{
gdbm
}
database library. Gdbm objects are of the mapping type, so they can be
handled just like objects of the built-in
\dfn
{
dictionary
}
type,
except that keys and values are always strings, and printing a gdbm
object doesn't print the keys and values.
The module is based on the Dbm module, modified to use GDBM instead.
The module defines the following constant and functions:
\renewcommand
{
\indexsubitem
}{
(in module gdbm)
}
\begin{excdesc}
{
error
}
Raised on gdbm-specific errors, such as I/O errors.
\code
{
KeyError
}
is
raised for general mapping errors like specifying an incorrect key.
\end{excdesc}
\begin{funcdesc}
{
open
}{
filename
\,
rwmode
\,
filemode
}
Open a gdbm database and return a mapping object.
\var
{
filename
}
is
the name of the database file,
\var
{
rwmode
}
is
\code
{
'r'
}
,
\code
{
'w'
}
,
\code
{
'c'
}
, or
\code
{
'n'
}
for reader, writer (this also gives read
access), create (writer, but create the database if it doesnt already
exist) and newdb (which will always create a new database). Only one
writer may open a gdbm file and many readers may open the file. Readers
and writers can not open the gdbm file at the same time. Note that the
\code
{
GDBM
_
FAST
}
mode of opening the database is not supported.
\var
{
filemode
}
is the unix mode of the file, used only when a database is created.
\end{funcdesc}
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