[melbourne-pug] A list of strings vs a list of list of strings
Brianna Laugher
brianna.laugher at gmail.com
Thu Jul 19 04:50:20 CEST 2007
On 19/07/07, James Briggs <jimmy.briggs at gmail.com> wrote:
> Why not try using a dictionary rather two lists? It can use the ngram
> as key and will take up little more than your two lists in space in
> memory.
I tried this first, but the dictionary won't accept a list as a key
because it's not hashable -- same reason I couldn't use set().
hmm...actually... maybe all I need to do is tuple-ise my lists! I
might try that.
cheers,
Brianna
--
They've just been waiting in a mountain for the right moment:
http://modernthings.org/
More information about the melbourne-pug
mailing list