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


Groups > comp.lang.python > #80426

Re: What is description attribute in python?

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <python.list@tim.thechases.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.006
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'attribute': 0.07; 'cc:addr :python-list': 0.11; '-tkc': 0.16; 'from:addr:python.list': 0.16; 'from:addr:tim.thechases.com': 0.16; 'from:name:tim chase': 0.16; 'received:10.216': 0.16; 'received:174.136': 0.16; 'subject:description': 0.16; 'url:peps': 0.16; 'subject:python': 0.16; 'wrote:': 0.18; 'cc:addr:python.org': 0.22; 'url:dev': 0.24; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; 'header:In-Reply- To:1': 0.27; 'code': 0.31; 'url:python': 0.33; 'charset:us-ascii': 0.36; 'subject:?': 0.36; 'url:org': 0.36; 'received:10': 0.37; 'does': 0.39; 'email addr:gmail.com': 0.63; 'to:addr:gmail.com': 0.65
X-Sender-Id wwwh|x-authuser|tim@thechases.com
X-Sender-Id wwwh|x-authuser|tim@thechases.com
X-MC-Relay Neutral
X-MailChannels-SenderId wwwh|x-authuser|tim@thechases.com
X-MailChannels-Auth-Id wwwh
X-MC-Loop-Signature 1415530587470:2252119709
X-MC-Ingress-Time 1415530587470
Date Sun, 9 Nov 2014 04:59:10 -0600
From Tim Chase <python.list@tim.thechases.com>
To satishmlmlml@gmail.com
Subject Re: What is description attribute in python?
In-Reply-To <abfcf629-9c5a-4db0-a7bb-dd10e9bba098@googlegroups.com>
References <abfcf629-9c5a-4db0-a7bb-dd10e9bba098@googlegroups.com>
X-Mailer Claws Mail 3.8.1 (GTK+ 2.24.10; x86_64-pc-linux-gnu)
Mime-Version 1.0
Content-Type text/plain; charset=US-ASCII
Content-Transfer-Encoding 7bit
X-AuthUser tim@thechases.com
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.15597.1415535253.18130.python-list@python.org> (permalink)
Lines 13
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1415535253 news.xs4all.nl 2916 [2001:888:2000:d::a6]:58808
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:80426

Show key headers only | 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