469,575 Members | 1,220 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,575 developers. It's quick & easy.

shelve file name extention

Hi All,
When I am using shelve on my local machine it generates the db file as
given filename. But in another machine it's generating <filename>.dat
and .dir.
can anyone tell me how can I force sheve module to write the db in
<filename>.dir and <filename>.dat, instead of <filename>? Do I have to
install a specific version of the python?

Thanks...
Monu
Sep 8 '08 #1
3 1079

MonuWhen I am using shelve on my local machine it generates the db
Monufile as given filename. But in another machine it's generating
Monu<filename>.dat and .dir. can anyone tell me how can I force sheve
Monumodule to write the db in <filename>.dir and <filename>.dat,
Monuinstead of <filename>? Do I have to install a specific version of
Monuthe python?

Shelve is just a thin layer on top of a concrete db file module. Sounds
like on your two machines there are different underlying db file modules
available. You're pretty much at the mercy of those modules as to file
naming. All you are giving it when opening a shelve file is the prefix.

Skip
Sep 8 '08 #2
On Sep 8, 1:47*pm, s...@pobox.com wrote:
* * MonuWhen I am using shelve on my local machine it generates thedb
* * Monufile as given filename. But in another machine it's generating
* * Monu<filename>.dat and .dir. *can anyone tell me how can I force sheve
* * Monumodule to write the db in <filename>.dir and <filename>.dat,
* * Monuinstead of <filename>? Do I have to install a specific version of
* * Monuthe python?

Shelve is just a thin layer on top of a concrete db file module. *Sounds
like on your two machines there are different underlying db file modules
available. *You're pretty much at the mercy of those modules as to file
naming. *All you are giving it when opening a shelve file is the prefix..

Skip
Thanks Skip.
So Can't I choose which module to use. Is there any preferance on
which shelve chooses these modules?
Sep 11 '08 #3
On Sep 8, 1:47*pm, s...@pobox.com wrote:
* * MonuWhen I am using shelve on my local machine it generates thedb
* * Monufile as given filename. But in another machine it's generating
* * Monu<filename>.dat and .dir. *can anyone tell me how can I force sheve
* * Monumodule to write the db in <filename>.dir and <filename>.dat,
* * Monuinstead of <filename>? Do I have to install a specific version of
* * Monuthe python?

Shelve is just a thin layer on top of a concrete db file module. *Sounds
like on your two machines there are different underlying db file modules
available. *You're pretty much at the mercy of those modules as to file
naming. *All you are giving it when opening a shelve file is the prefix..

Skip
Thanks Skip.
So Can't I choose which module to use. Is there any preferance on
which shelve chooses these modules?
Sep 11 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Rami A. Kishek | last post: by
reply views Thread by ex laguna | last post: by
reply views Thread by Ray O | last post: by
3 posts views Thread by Michele Petrazzo | last post: by
6 posts views Thread by aomighty | last post: by
13 posts views Thread by 7stud | last post: by
5 posts views Thread by gluckj | last post: by
2 posts views Thread by hypermonkey2 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.