Menu

#6 dbshelve.py broken

closed-fixed
None
5
2001-06-13
2001-04-26
Anonymous
No

dbshelve.py defines a DBShelfCursor class, which is
broken:

1. The pickle needs a self.binary which is never
initialized inside the class (I know, I can obtain the
cursor class and then do cursor.binary = 1, but this is
annoying)

2. get_both does not get both :-)

Here is the simple patch.

Discussion

  • Robin Dunn

    Robin Dunn - 2001-04-27
    • assigned_to: nobody --> robind
     
  • Robin Dunn

    Robin Dunn - 2001-04-27

    Logged In: YES
    user_id=53955

    Thanks, but there is no patch attached...

     
  • Itamar Shtull-Trauring

    Logged In: YES
    user_id=32065

    AFAICT you just need to add a "self.binary = 1" in
    DBShelfCursor.__init__ to solve problem (1).

     
  • Robin Dunn

    Robin Dunn - 2001-06-13
    • status: open --> closed-fixed
     

Log in to post a comment.