Skip to content

Can 'Shelve' and 'dbm' not be used in Android? #2795

Answered by freakboy3742
jlij asked this question in Q&A
Discussion options

You must be logged in to vote

I have given you an example. Instead of calling:

with shelve.open('mydata.db'):
    ...

call:

self.paths.data.mkdir(exist_ok=True, parents=True)
with shelve.open(self.paths.data / "mydata.db"):
    ...

Replies: 3 comments 7 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
7 replies
@jlij
Comment options

@freakboy3742
Comment options

@jlij
Comment options

@freakboy3742
Comment options

Answer selected by jlij
@jlij
Comment options

@freakboy3742
Comment options

@jlij
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants