[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.python

Re: shelve.open generates (22, 'Invalid argument') Os X 10.5 with Python 2.5

Ned Deily

2/16/2010 8:26:00 PM

In article
<7a9d26a8-0a9f-4bf3-bf50-0ac5e337f482@r24g2000yqd.googlegroups.com>,
seth <hklasky@gmail.com> wrote:
> We have a code that creates a simple Python shelve database. We are
> able to serialize objects and store them in the dbm file. This seem to
> work the same on Windows XP Python 2.5, Ubuntu 9.1 with Python 2.6,
> but on Os X 10.5 with Python 2.5 the database filename is changed by
> the operating system by attaching the .db extension to it. Does an one
> know why is that?

It's a documented "feature": it depends on the underlying database
package used by shelve.

http://docs.python.org/library/s...

"As a side-effect, an extension may be added to the filename ..."

--
Ned Deily,
nad@acm.org