[issue36322] Argument typo in dbm.ndbm.open

Terry J. Reedy report at bugs.python.org
Fri Mar 22 20:02:46 EDT 2019


Terry J. Reedy <tjreedy at udel.edu> added the comment:

I have trouble understanding this post.  The parameter name is 'flag', not 'flags' and there are no typos, including in ndbm.  The parameter name is singular because there is basically one flag with 4 possible values to indicate how to open.  The fact that gdbm has optional subflags does not require changing the name and I think it better to keep the documented API the same.

The only time 'flags' appears is in "Not all flags are valid for all versions of gdbm. The module constant open_flags is a string of supported flag characters."  Here, 'flags' refers to the multiple possible values for the 'flag' argument, not the argument itself.

I think that this issue and the PR should be closed.

----------
nosy: +terry.reedy

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36322>
_______________________________________


More information about the Python-bugs-list mailing list