Changeset 681 for trunk/docs


Ignore:
Timestamp:
Dec 30, 2015, 5:39:53 PM (4 years ago)
Author:
cito
Message:

Let cursor.description return named tuples

Location:
trunk/docs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/docs/changelog.rst

    r679 r681  
    1212  Since the API provides objects of these types only by the use of
    1313  constructor functions, this should not cause any incompatibilities.
     14- The tty parameter and attribute of database connections has been
     15  removed since it is not supported any more since PostgreSQL 7.4.
     16- The 7-tuples returned by the description attribute of a pgdb cursor
     17  are now named tuples, i.e. their elements can be also accessed by name.
    1418
    1519Version 4.2
  • trunk/docs/pgdb.rst

    r680 r681  
    225225.. attribute:: Cursor.description
    226226
    227     This read-only attribute is a sequence of 7-item sequences.
    228 
    229     Each of these sequences contains information describing one result column:
    230 
    231     - *name*
    232     - *type_code*
    233     - *display_size*
    234     - *internal_size*
    235     - *precision*
    236     - *scale*
    237     - *null_ok*
    238 
    239     Note that *precision*, *scale* and *null_ok* are not implemented.
     227    This read-only attribute is a sequence of 7-item named tuples.
     228
     229    Each of these named tuples contains information describing
     230    one result column:
     231
     232        - *name*
     233        - *type_code*
     234        - *display_size*
     235        - *internal_size*
     236        - *precision*
     237        - *scale*
     238        - *null_ok*
     239
     240    Note that *display_size*, *precision*, *scale* and *null_ok*
     241    are not implemented.
    240242
    241243    This attribute will be ``None`` for operations that do not return rows
Note: See TracChangeset for help on using the changeset viewer.