This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Mode argument of dumbdbm does not work
Type: Stage:
Components: Interpreter Core Versions: Python 2.6
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: akuchling Nosy List: akuchling, fdrake, loewis
Priority: normal Keywords:

Created on 2003-09-07 20:46 by loewis, last changed 2022-04-10 16:11 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
dumbdbm.patch akuchling, 2006-12-22 13:50 Simple patch for dumbdbm fix.
Messages (7)
msg18093 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2003-09-07 20:46
In dumbdbm.py 2.15, support for a mode argument was
added. However, this support does not work: The mode
argument is passed to __builtin__.open, which does not
support specification of a mode. Instead, the third
argument to that function specifies the buffer size.
msg18094 - (view) Author: Fred Drake (fdrake) (Python committer) Date: 2003-09-12 06:18
Logged In: YES 
user_id=3066

I have what I think is a correct patch, but I should be able
to simplify it (related to handling the umask).  Untested on
Windows.
msg18095 - (view) Author: A.M. Kuchling (akuchling) * (Python committer) Date: 2006-12-22 13:44
Fred, do you still have the patch you mention?  I've worked up a patch, but it must be simpler; I don't do anything with the umask.
msg18096 - (view) Author: A.M. Kuchling (akuchling) * (Python committer) Date: 2006-12-22 13:50
Attaching my patch.

File Added: dumbdbm.patch
msg18097 - (view) Author: Fred Drake (fdrake) (Python committer) Date: 2006-12-22 13:54
Sorry, my patch is long gone.  :-(
msg18098 - (view) Author: A.M. Kuchling (akuchling) * (Python committer) Date: 2006-12-22 15:05
Fix committed in rev. 53141.  Leaving open while I look at umask stuff a bit.
msg18099 - (view) Author: A.M. Kuchling (akuchling) * (Python committer) Date: 2006-12-22 15:17
Change committed for the umask stuff; I'll see how the buildbots react.

Closing this bug.
History
Date User Action Args
2022-04-10 16:11:03adminsetgithub: 39197
2003-09-07 20:46:03loewiscreate