summaryrefslogtreecommitdiffstats
path: root/Modules/_dbmmodule.c
Commit message (Collapse)AuthorAgeFilesLines
* bpo-33106: change dbm key deletion error for readonly file from KeyError to ↵Xiang Zhang2018-12-121-3/+12
| | | | | | dbm.error (#6295)
* bpo-34248: Add filename to error raised in {gnu,ndbm}.open() (GH-8590)Zsolt Cserna2018-09-271-1/+1
| | | | | | Report the filename to the exception when raising {gdbm,dbm.ndbm}.error in dbm.gnu.open() and dbm.ndbm.open() functions, so it gets printed when the exception is raised, and can also be obtained by the filename attribute of the exception object.
* bpo-33383: Fix crash in get() of the dbm.ndbm database object. (#6630)Serhiy Storchaka2018-04-291-2/+2
|
* bpo-32922: dbm.open() now encodes filename with the filesystem encoding. ↵Serhiy Storchaka2018-02-261-4/+17
| | | | (GH-5832)
* bpo-30022: Get rid of using EnvironmentError and IOError (except test… (#1051)Serhiy Storchaka2017-04-161-1/+1
|
* Issue #28999: Use Py_RETURN_NONE, Py_RETURN_TRUE and Py_RETURN_FALSE whereverSerhiy Storchaka2017-01-231-2/+1
| | | | possible. Patch is writen with Coccinelle.
* Issue #28769: The result of PyUnicode_AsUTF8AndSize() and PyUnicode_AsUTF8()Serhiy Storchaka2017-01-221-1/+1
| | | | is now of type "const char *" rather of "char *".
* - Issue #27332: Fixed the type of the first argument of module-level functionsSerhiy Storchaka2016-07-071-2/+2
|\ | | | | | | generated by Argument Clinic. Patch by Petr Viktorin.
| * Issue #27332: Fixed the type of the first argument of module-level functionsSerhiy Storchaka2016-07-071-2/+2
| | | | | | | | generated by Argument Clinic. Patch by Petr Viktorin.
* | Issue #25923: Added the const qualifier to static constant arrays.Serhiy Storchaka2015-12-251-4/+4
|/
* Issue #24000: Improved Argument Clinic's mapping of converters to legacyLarry Hastings2015-05-081-4/+5
| | | | "format units". Updated the documentation to match.
* Issue #24001: Argument Clinic converters now use accept={type}Larry Hastings2015-05-041-4/+4
| | | | instead of types={'type'} to specify the types the converter accepts.
* Issue #20184: Converted _dbm and _gdbm modules to Argument Clinic.Serhiy Storchaka2015-04-171-61/+67
|
* Issue #23935: Argument Clinic's understanding of format unitsLarry Hastings2015-04-161-2/+2
| | | | | accepting bytes, bytearrays, and buffers is now consistent with both the documentation and the implementation.
* Issue #23944: Argument Clinic now wraps long impl prototypes at column 78.Larry Hastings2015-04-141-4/+6
|
* Issue #23501: Argumen Clinic now generates code into separate files by default.Serhiy Storchaka2015-04-031-70/+4
|
* Issue #20530: Argument Clinic's signature format has been revised again.Larry Hastings2014-02-091-4/+8
| | | | | | | The new syntax is highly human readable while still preventing false positives. The syntax also extends Python syntax to denote "self" and positional-only parameters, allowing inspect.Signature objects to be totally accurate for all supported builtins in Python 3.4.
* #Issue 20456: Several improvements and bugfixes for Argument Clinic,Larry Hastings2014-02-011-29/+15
| | | | | including correctly generating code for Clinic blocks inside C preprocessor conditional blocks.
* Issue #20326: Argument Clinic now uses a simple, unique signature toLarry Hastings2014-01-281-5/+5
| | | | | | | | | | annotate text signatures in docstrings, resulting in fewer false positives. "self" parameters are also explicitly marked, allowing inspect.Signature() to authoritatively detect (and skip) said parameters. Issue #20326: Argument Clinic now generates separate checksums for the input and output sections of the block, allowing external tools to verify that the input has not changed (and thus the output is not out-of-date).
* Issue #20390: Small fixes and improvements for Argument Clinic.Larry Hastings2014-01-261-1/+1
|
* Issue #20189: Four additional builtin types (PyTypeObject,Larry Hastings2014-01-241-6/+6
| | | | | | PyMethodDescr_Type, _PyMethodWrapper_Type, and PyWrapperDescr_Type) have been modified to provide introspection information for builtins. Also: many additional Lib, test suite, and Argument Clinic fixes.
* Two minor Argument Clinic bugfixes: use the name of the class in theLarry Hastings2014-01-221-4/+5
| | | | | docstring for __new__ and __init__, and always use "goto exit" instead of returning "NULL" for failure to parse (as _new__ and __init__ return ints).
* Issue #20226: Major improvements to Argument Clinic.Larry Hastings2014-01-161-3/+3
| | | | | | | | | | | | | | | | | | | | | | | * You may now specify an expression as the default value for a parameter! Example: "sys.maxsize - 1". This support is intentionally quite limited; you may only use values that can be represented as static C values. * Removed "doc_default", simplified support for "c_default" and "py_default". (I'm not sure we still even need "py_default", but I'm leaving it in for now in case a use presents itself.) * Parameter lines support a trailing '\\' as a line continuation character, allowing you to break up long lines. * The argument parsing code generated when supporting optional groups now uses PyTuple_GET_SIZE instead of PyTuple_GetSize, leading to a 850% speedup in parsing. (Just kidding, this is an unmeasurable difference.) * A bugfix for the recent regression where the generated prototype from pydoc for builtins would be littered with unreadable "=<object ...>"" default values for parameters that had no default value. * Converted some asserts into proper failure messages. * Many doc improvements and fixes.
* Issue #19273: The marker comments Argument Clinic uses have been changedLarry Hastings2014-01-071-12/+12
| | | | to improve readability.
* Issue #19296: Silence compiler warning in dbm_open.Christian Heimes2013-12-051-1/+2
| | | | Some dbm header files declare the first argument as char * instead of a const char *.
* Issue #19674: inspect.signature() now produces a correct signatureLarry Hastings2013-11-231-12/+11
| | | | for some builtins.
* Issue #19730: Argument Clinic now supports all the existing PyArgLarry Hastings2013-11-231-23/+84
| | | | | "format units" as legacy converters, as well as two new features: "self converters" and the "version" directive.
* Argument Clinic: rename "self" to "module" for module-level functions.Larry Hastings2013-11-181-5/+5
|
* Close #19282: Native context management in dbmNick Coghlan2013-11-171-0/+17
|
* Issue #19287: Fixed the "in" operator of dbm.ndbm databases for stringSerhiy Storchaka2013-10-241-2/+2
|\ | | | | | | argument. Original patch by Arfrever Frehtes Taifersar Arahesis.
| * Issue #19287: Fixed the "in" operator of dbm.ndbm databases for stringSerhiy Storchaka2013-10-241-2/+2
| | | | | | | | argument. Original patch by Arfrever Frehtes Taifersar Arahesis.
* | Issue #16612: Add "Argument Clinic", a compile-time preprocessorLarry Hastings2013-10-191-10/+61
| | | | | | | | for C files to generate argument parsing code. (See PEP 436.)
* | Issue #18722: Remove uses of the "register" keyword in C code.Antoine Pitrou2013-08-131-7/+7
| |
* | #16135: Removal of OS/2 support (Modules/*)Jesus Cea2012-10-051-4/+0
|/
* Implement PEP 393.Martin v. Löwis2011-09-281-4/+8
|
* Remove useless argument of _PyUnicode_AsDefaultEncodedString()Victor Stinner2011-03-021-1/+1
|
* Recorded merge of revisions 81029 via svnmerge fromAntoine Pitrou2010-05-091-309/+309
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81029 | antoine.pitrou | 2010-05-09 16:46:46 +0200 (dim., 09 mai 2010) | 3 lines Untabify C files. Will watch buildbots. ........
* Issue #1717: rename tp_compare to tp_reserved. I'll change theMark Dickinson2009-02-021-1/+1
| | | | | type of tp_compare in a separate commit, for ease of reversion should things go wrong.
* Define PY_SSIZE_T_CLEAN at the top of the dbm module. This should fix theMark Dickinson2009-01-161-0/+1
| | | | segfaults on the PPC64/Debian buildbots.
* issue 4483 - _dbm build failures on systems with gdbm_compat lib.Skip Montanaro2008-12-061-0/+3
|
* dbm.gnu and dbm.ndbm accept both strings and bytes as keys and values. For theBrett Cannon2008-11-251-2/+2
| | | | | | former they are converted to bytes before being written to the DB. Closes issue 3799. Reviewed by Skip Montanaro.
* fixes deferred/release blocker issue #3797: Fixed the dbm, marshal, mmap,Gregory P. Smith2008-09-061-5/+5
| | | | | ossaudiodev, & winreg modules to return bytes objects instead of bytearray objects.
* #3247: get rid of Py_FindMethodAmaury Forgeot d'Arc2008-07-021-8/+10
| | | | Third step: unix-only modules. Really remove the function this time.
* Implement PEP 3121: new module initialization and finalization API.Martin v. Löwis2008-06-111-4/+22
|
* Make db modules' error classes inherit IOError.Georg Brandl2008-05-281-1/+2
| | | | Stop dbm from importing every dbm module when imported.
* Renamed PyString to PyBytesChristian Heimes2008-05-261-3/+3
|
* Renamed PyBytes to PyByteArrayChristian Heimes2008-05-261-5/+5
|
* Create the dbm package from PEP 3108. #2881.Georg Brandl2008-05-261-0/+412