[web2py] Issue with defaultdict(list)

2018-03-11 Thread Val K
Hi! If you're Windows user it's requires to run web2py from source (not web2py.exe) to get modules that are installed on your machine -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/is

[web2py] Issue with defaultdict(list)

2018-03-11 Thread Drew Howell
I seem to be having issues getting defaultdict to work within Web2Py. I am using Web2Py version 2.16.1 (Python 2.7.11). Here is the code in my controller: from collections import defaultdict g = defaultdict(list) g['someKey'].append('someValue') Here is the error I'm getting: File "D:/web2py/ap