Menu

#49 TypeError: keys() takes no keyword args

open
4
2004-06-28
2004-04-05
No

I think this code used to work -- maybe the interface
has changed? Anyway, it is easy for me to pass txn as
an arg instead of a kwarg.

2004-04-05_13:13:31 () File
"/home/zooko/playground/mnet/mnet_v062/common/localblockstore.py",
line 350, in __cleanup_old_blobs
2004-04-05_13:13:31 () blockid_list =
filter(idlib.is_sloppy_id, self.index_db.keys(txn=txn))
2004-04-05_13:13:31 () File
"/home/zooko/playground/mnet/mnet_v062/PythonLibs/bsddb/dbobj.py",
line 152, in keys
2004-04-05_13:13:31 () return
apply(self._cobj.keys, args, kwargs)
2004-04-05_13:13:31 () TypeError: keys() takes no
keyword arguments

Discussion

  • Gregory P. Smith

    • labels: --> _db extension module
    • priority: 5 --> 4
    • assigned_to: nobody --> greg
    • summary: TypeError: keys() takes no keyword ar --> TypeError: keys() takes no keyword args
     
  • Gregory P. Smith

    Logged In: YES
    user_id=413

    The keys/items/has_key methods of DB objects have never
    accepted keyword arguments. This is not consistent with
    other methods on which it is best to always use keywords;
    fixing it would be good. on the todo list.

     

Log in to post a comment.