Huge dictionary Python not working -


i have big dictionary in python . . . isn't compiling in coderunner or in xcode

i have list that's not big i'm trying translate isn't working correctly because dictionary big . . 23124 keys in dictionary . is there way process large dictionaries creating database or ?

when copy , paste dictionary coderunner or in xcode, colors not change different types of elements strings or integers.

when run this, larger output input

#d_ens_g = {"big" dictionary w/ >20k keys , values}  def simple_reader(input,output='test.txt'):     temp = []      query=open(input,'r').read().split('\r')     q in query:         print d_ens_g[q]  test_2 = '~/desktop/list.txt' simple_reader(test_2) 

every element in list import in test_2 has particular id in keys of dictionary

do need large dictionary? presumably pulling data file. need dictionary? real database might smarter joran says


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -