shelve Questions

5

Solved

What is the concept of each? When is it ok to shelve your changes instead of checking in?
Building asked 5/2, 2009 at 16:52

0

I'm working with shelve in python 2.7.6 for caching calculations, and I've ran into the issue described HERE for shelve files produced by me and implemented the suggested solution in a function tha...
Coldshoulder asked 18/9, 2016 at 1:32

1

Why shelve raise an error if I try to open a file just created by shelve? import shelve info_file_name = "/Users/bacon/myproject/temp/test.info" info_file = shelve.open(info_file_name) info_file[...
Duston asked 3/3, 2016 at 12:7

3

I am trying to make a simple password-storing program in Python, and it seems pretty simple so I am wondering if I am using shelve wrong. I have the main .py file: import shelve passwords = she...
Arbe asked 23/5, 2013 at 2:56

3

I see no documentation on how to do this in the docs.
Lundgren asked 4/8, 2013 at 23:11

2

Solved

If I am storing a large directory as a pickle file, does loading it via cPickle mean that it will all be consumed into memory at once? If so, is there a cross platform way to get something like pi...
Astor asked 3/2, 2013 at 1:13

1

I have been assigned the task of reading a .txt file which is a log of various events and writing some of those events into a dictionary. The problem is that the file can sometimes get bigger than...
Swanskin asked 24/5, 2011 at 18:30

2

When invoking hg unshelve --keep and I get a conflict, I need to resolve the conflict and then invoke hg unshelve --continue --keep again. Why is the last step necessary? And why I can't invoke hg ...
Cobbler asked 7/4, 2015 at 17:12

3

Solved

I just started using Perforce after using Git for a year. Is there any equivalent of a git local commit to my branch in perforce. Essentially, if I want to work on a complex task which might need ...
Ineluctable asked 19/2, 2015 at 23:54

1

Solved

Following is my code, import shelve sd = shelve.open("session.data") When I try the same code in IDLE , I am not getting any error. But when running the script with this code, I am getti...
Rotz asked 24/11, 2014 at 10:30

2

Solved

Our team is just getting started with Mercurial. One of the first things we've started to play with is hg shelve. Locally, I have no problem shelving changes. It all works perfectly from what I can...
Eh asked 6/5, 2010 at 20:23

3

Solved

I am trying to write a memoization library that uses shelve to store the return values persistently. If I have memoized functions calling other memoized functions, I am wondering about how to corre...
Monarchal asked 24/7, 2014 at 16:38

1

Solved

The documentation of the shelve module makes the following claim under Restrictions: The shelve module does not support concurrent read/write access to shelved objects. (Multiple simultaneous re...
Adolescent asked 30/4, 2014 at 21:4

2

Solved

I have data that is best represented by a tree. Serializing the structure makes the most sense, because I don't want to sort it every time, and it would allow me to make persistent modifications to...
Orchidaceous asked 12/2, 2014 at 1:36

2

I want UserA to be able to create a changelist in Perforce and then Shelve it. I would then like UserB to be able to unshelve that changelist and submit it. This sounds simple, but Perforce unshel...
Gambol asked 19/3, 2012 at 4:16

1

Solved

I'm running a Python program which uses the shelve module on top of pickle. After running this program sometimes I get one output file as a.data but at other times I get three output files as a.dat...
Topminnow asked 23/4, 2013 at 14:22

1

Solved

I am using TFS 2010. I have to review code which is shelved by other developer before checkin. How can we do this in TFS2010 so that I can get his changes and review. Thanks!
Saar asked 12/7, 2012 at 5:54

2

Solved

I have a large Python dictionary of vectors (150k vectors, 10k dimensions each) of float numbers that can't be loaded into memory, so I have to use one of the two methods for storing this on disk a...
Bathymetry asked 5/6, 2012 at 11:22

2

Solved

How can I serialize hash objects?, I'm using shelve to store a lot of objects. Hierarchy: - user - client - friend user.py: import time import hashlib from localfile import localfile class ...
Careen asked 22/1, 2012 at 16:19

1

Solved

I have set up a Python script that simulates an OS. It has a command prompt and a virtual file system. I am using the shelve module to simulate the file system, being multi-dimensional in order to ...
Sennight asked 11/1, 2012 at 3:39

5

Solved

Scenario: After your last commit, you decided to do some extensive refactoring of the codebase. After a time, you realize it is taking longer than expected, and you'd really rather put off the refa...
Tsushima asked 27/5, 2011 at 22:53

3

Solved

I've recently started working with MQ as I like the idea of working on isolated patches and committing without affecting the repo until the changeset is refined enough. Before that, I used to work ...
Affined asked 31/10, 2011 at 7:4

1

Solved

Lets say I have a large, 100s of megabytes, dictionary that I want to make into an on disk shelve. I'm using pypar to utilize MPI to generate cleaned bits of a master list. What's the best way to a...
Selina asked 10/7, 2011 at 9:9

2

Solved

If i'm working on some files that I don't want to commit, I just save them. I then have other files I want to push to the server, however if someone else has made changes to the repository, and I p...
Towner asked 17/6, 2011 at 23:34

0

Hmm I think the question itself is pretty straight-forward... In Team Foundation 2010, is it possible to link a shelveset to a work item in some way ? If so, is it possible to automatically creat...
Brigette asked 4/2, 2011 at 13:42

© 2022 - 2024 — McMap. All rights reserved.