Re: [Tutor] dictionaries and memory handling

2007-03-03 Thread Andrei
> But most of my dictionaries are nested, and since both keys and values > in the dbm 'dictionaries' have to be strings, I can't immediately see > how I could get it to work. > > A bit more detail: I deal with conditional probabilities, with up to 4 > parameters. These parameters are numbers or

Re: [Tutor] dictionaries and memory handling

2007-02-26 Thread Arild B. Næss
februar 2007 18.30.40 GMT+01:00 Til: tutor@python.org Emne: [Tutor] dictionaries and memory handling Delivered-To: [EMAIL PROTECTED] Hi, I'm working on a python script for a task in statistical language processing. Briefly put it all boils down to counting different things in very large text

Re: [Tutor] dictionaries and memory handling

2007-02-26 Thread Arild B. Næss
februar 2007 18.30.40 GMT+01:00 Til: tutor@python.org Emne: [Tutor] dictionaries and memory handling Delivered-To: [EMAIL PROTECTED] Hi, I'm working on a python script for a task in statistical language processing. Briefly put it all boils down to counting different things in very large text

Re: [Tutor] dictionaries and memory handling

2007-02-24 Thread Kent Johnson
Arild B. Næss wrote: > Hi, > > I'm working on a python script for a task in statistical language > processing. Briefly put it all boils down to counting different > things in very large text files, doing simple computations on these > counts and storing the results. I have been using pytho

Re: [Tutor] dictionaries and memory handling

2007-02-23 Thread Bill Campbell
On Fri, Feb 23, 2007, Alan Gauld wrote: >"Bill Campbell" <[EMAIL PROTECTED]> wrote > >>>It seems that an SQL database would probably be the way to go, but I >>>am a bit concerned about speed issues (even though running time is >> ... >> You would probably be better off using one of the hash databas

Re: [Tutor] dictionaries and memory handling

2007-02-23 Thread Alan Gauld
"Bill Campbell" <[EMAIL PROTECTED]> wrote >>It seems that an SQL database would probably be the way to go, but I >>am a bit concerned about speed issues (even though running time is > ... > You would probably be better off using one of the hash databases, > Berkeley, gdbm, etc. (see the anydbm doc

Re: [Tutor] dictionaries and memory handling

2007-02-23 Thread Bill Campbell
On Fri, Feb 23, 2007, =?ISO-8859-1?Q? Arild_B._N=E6ss ?= wrote: >Hi, > >I'm working on a python script for a task in statistical language >processing. Briefly put it all boils down to counting different >things in very large text files, doing simple computations on these >counts and storing t

[Tutor] dictionaries and memory handling

2007-02-23 Thread Arild B. Næss
Hi, I'm working on a python script for a task in statistical language processing. Briefly put it all boils down to counting different things in very large text files, doing simple computations on these counts and storing the results. I have been using python's dictionary type as my basic d