mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Issue #23935: Argument Clinic's understanding of format units
accepting bytes, bytearrays, and buffers is now consistent with both the documentation and the implementation.
This commit is contained in:
parent
3b8124884c
commit
7f90cba7f3
4 changed files with 60 additions and 67 deletions
|
@ -272,7 +272,7 @@ dbm.dbm.get
|
|||
|
||||
self: dbmobject
|
||||
|
||||
key: str(length=True)
|
||||
key: str(types={'str', 'robuffer'}, length=True)
|
||||
default: object = None
|
||||
/
|
||||
|
||||
|
@ -282,7 +282,7 @@ Return the value for key if present, otherwise default.
|
|||
static PyObject *
|
||||
dbm_dbm_get_impl(dbmobject *dp, const char *key, Py_ssize_clean_t key_length,
|
||||
PyObject *default_value)
|
||||
/*[clinic end generated code: output=4f5c0e523eaf1251 input=aecf5efd2f2b1a3b]*/
|
||||
/*[clinic end generated code: output=4f5c0e523eaf1251 input=f81478bc211895ef]*/
|
||||
{
|
||||
datum dbm_key, val;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue