Mercurial > cpython-lru_cache-weakref
annotate Doc/lib/libwhichdb.tex @ 25838:8540887bcec6 2.2
Backport of 2.183:
Fix memory leak in add_subclass() found by NealN with valgrind.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Fri, 18 Oct 2002 13:42:21 +0000 |
| parents | 99681ee86698 |
| children |
| rev | line source |
|---|---|
| 8918 | 1 \section{\module{whichdb} --- |
| 10251 | 2 Guess which DBM module created a database} |
| 3 | |
|
8716
760dcf197048
Adjusted to use the new module synopsis support macros.
Fred Drake <fdrake@acm.org>
parents:
7877
diff
changeset
|
4 \declaremodule{standard}{whichdb} |
|
760dcf197048
Adjusted to use the new module synopsis support macros.
Fred Drake <fdrake@acm.org>
parents:
7877
diff
changeset
|
5 \modulesynopsis{Guess which DBM-style module created a given database.} |
|
760dcf197048
Adjusted to use the new module synopsis support macros.
Fred Drake <fdrake@acm.org>
parents:
7877
diff
changeset
|
6 |
| 5261 | 7 |
| 8 The single function in this module attempts to guess which of the | |
|
10658
99681ee86698
Make the names of the referenced modules hyperlinks; they had not been
Fred Drake <fdrake@acm.org>
parents:
10251
diff
changeset
|
9 several simple database modules available--\refmodule{dbm}, |
|
99681ee86698
Make the names of the referenced modules hyperlinks; they had not been
Fred Drake <fdrake@acm.org>
parents:
10251
diff
changeset
|
10 \refmodule{gdbm}, or \refmodule{dbhash}--should be used to open a |
|
99681ee86698
Make the names of the referenced modules hyperlinks; they had not been
Fred Drake <fdrake@acm.org>
parents:
10251
diff
changeset
|
11 given file. |
| 5261 | 12 |
| 13 \begin{funcdesc}{whichdb}{filename} | |
| 14 Returns one of the following values: \code{None} if the file can't be | |
| 15 opened because it's unreadable or doesn't exist; the empty string | |
|
10658
99681ee86698
Make the names of the referenced modules hyperlinks; they had not been
Fred Drake <fdrake@acm.org>
parents:
10251
diff
changeset
|
16 (\code{''}) if the file's format can't be guessed; or a string |
|
99681ee86698
Make the names of the referenced modules hyperlinks; they had not been
Fred Drake <fdrake@acm.org>
parents:
10251
diff
changeset
|
17 containing the required module name, such as \code{'dbm'} or |
|
99681ee86698
Make the names of the referenced modules hyperlinks; they had not been
Fred Drake <fdrake@acm.org>
parents:
10251
diff
changeset
|
18 \code{'gdbm'}. |
| 5261 | 19 \end{funcdesc} |
| 20 |
