by reference

dirvine irvine.david at gmail.com
Sun Feb 12 19:09:53 EST 2006


Yes I did

I was trying to do something like (pseudo code)

write:
get files in path
for each filename get size, type
create dic called filename assign size:xx,type:y
pickle to file

read:
open pickled file
read dict name and contents (hoping unpickling file gives me the dict
name as it was saved, which may not be true)
do stuff with file


and thats it. My prog is a bit more complex than this but this is the
general idea basically read files -> create dicts of files one at a
time, very similar to bittorrent in that take a file smash to bits and
store links to bits in a big file.

Many thanls
David




More information about the Python-list mailing list