Why chromedoes Python complain about the link before the assignment? He does not complain about the dictionary. This is with Python 2.5, if that matters.
def f():
google['browser'] = 'chrome'
chrome += 1
google = dict()
chrome = 1
f()
I can make it work with global chrome, of course, but I would like to know why Python is not considering this variable. Thank.
user479870
source
share