For some project I have to make a dictionary in which the keys are urls,among which I have this url:
http://www.microsoft.com/isapi/redir.dll?prd=windows&sbp=mediaplayer&ar=Media&sba=Guide&pver=6.2
the url is too long to fit in here I guess in one single line. I can build a dictionary without any errors this url is also a key. but for some reason when I want to extract the values associated to this key(url). I cannot, I get and error "error key:...." Does someone know what is wrong with this url? Are dictionary keys sensitive to some stuff? thanks
below is the code:
def initialize_sumWTP_table(cursor):
cursor.execute( ''' SELECT url,tagsCount
FROM sumWTP''')
rows = cursor.fetchall ()
for url,tagsCount in rows:
sumWTP[url] = tagsCount
sumWTPinitialized? Where's the code that adds the URL to the database? If it's a lot of code, you can post it at some other site like pastebin.net (just for example) and link to it, and then just include the most important few lines here.