What is description attribute in python?

Tim Chase python.list at tim.thechases.com
Sun Nov 9 11:59:10 CET 2014


On 2014-11-09 02:42, satishmlmlml at gmail.com wrote:
> What does description attribute in the following code mean?
> 
> curs.execute('select * from people')
> colnames = [desc[0] for desc in curs.description]

http://legacy.python.org/dev/peps/pep-0249/#cursor-attributes

-tkc







More information about the Python-list mailing list