At 11:29 PM +0100 2005-02-08, Brad Knowles wrote:
Mac OS X 10.3.7 seems to use Python 2.3 by default. The new db package sounds very promising. Will my Python pickles automatically use this new "db package" without requiring any work on my part?
I'm not one hundred percent sure, but I would be very surprised if they did. I think you may need to do a little bit of programming to change the pickle format, but I couldn't tell you what that would be. I'll leave others to answer this question.
I've done a bit of checking, and Python 2.2 supported the "bsddb" database format. It's not mentioned in 2nd edition of _Programming Python_, but pages 946-949 do cover programming with the AnyDBM module, and bsddb is a special case of that, according to 1st edition of _Python In a Nutshell_, pages 230-236. Both books also cover the issue of pickling individual objects, and storing objects within databases, etc....
There may have been some additional support for bsddb directly within pickling objects added for Python 2.3, but I have yet to find specific references for that in the documentation. But you can start looking at <http://www.python.org/doc/2.3.5/lib/module-bsddb.html> and <http://www.python.org/doc/2.3.5/lib/module-pickle.html>, if you want to learn more.
At this point, it may be best to continue this discussion on the mailman-developers list.
-- Brad Knowles, <[EMAIL PROTECTED]>
"Those who would give up essential Liberty, to purchase a little temporary Safety, deserve neither Liberty nor Safety."
-- Benjamin Franklin (1706-1790), reply of the Pennsylvania
Assembly to the Governor, November 11, 1755SAGE member since 1995. See <http://www.sage.org/> for more info. ------------------------------------------------------ Mailman-Users mailing list [email protected] http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org
