Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #80415

What is description attribute in python?

Newsgroups comp.lang.python
Date 2014-11-09 02:42 -0800
Message-ID <abfcf629-9c5a-4db0-a7bb-dd10e9bba098@googlegroups.com> (permalink)
Subject What is description attribute in python?
From satishmlmlml@gmail.com

Show all headers | View raw


What does description attribute in the following code mean?

curs.execute('select * from people')
colnames = [desc[0] for desc in curs.description]

Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

What is description attribute in python? satishmlmlml@gmail.com - 2014-11-09 02:42 -0800
  Re: What is description attribute in python? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-11-09 21:59 +1100
    Re: What is description attribute in python? satishmlmlml@gmail.com - 2014-11-09 03:05 -0800
      Re: What is description attribute in python? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-11-09 14:13 +0000
    Re: What is description attribute in python? Deepfriedice <Deepfriedice@openmailbox.org> - 2014-11-09 21:08 +1000
  Re: What is description attribute in python? Tim Chase <python.list@tim.thechases.com> - 2014-11-09 04:59 -0600

csiph-web