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


Groups > comp.lang.python > #80426

Re: What is description attribute in python?

Date 2014-11-09 04:59 -0600
From Tim Chase <python.list@tim.thechases.com>
Subject Re: What is description attribute in python?
References <abfcf629-9c5a-4db0-a7bb-dd10e9bba098@googlegroups.com>
Newsgroups comp.lang.python
Message-ID <mailman.15597.1415535253.18130.python-list@python.org> (permalink)

Show all headers | View raw


On 2014-11-09 02:42, satishmlmlml@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



Back to comp.lang.python | Previous | Next — Previous 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