Dictionary from sqlite3.Row and PyCharm unresolved reference

Mario Figueiredo marfig at gmail.com
Fri Feb 13 13:46:04 EST 2015


In article <mailman.18727.1423827222.18130.python-list at python.org>, 
__peter__ at web.de says...
> 
> self.data = dict(row)

I didn't realize from the documentation it could be this simple. Thanks.

> 
> And now an unsolicited remark: if you have more than one instance of Unknown 
> you might read the data outside the initialiser or at least keep the 
> connection open and pass a connection or cursor object to the initialiser.

Yes, thank you. Later I am moving the code to a factory.



More information about the Python-list mailing list