File: rows.py

package info (click to toggle)
python-agate 1.9.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,996 kB
  • sloc: python: 8,512; makefile: 126
file content (21 lines) | stat: -rw-r--r-- 734 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
"""
This module contains agate's :class:`Row` implementation. Rows are independent
of both the :class:`.Table` that contains them as well as the :class:`.Columns`
that access their data. This independence, combined with rows immutability
allows them to be safely shared between table instances.
"""

from agate.mapped_sequence import MappedSequence


class Row(MappedSequence):
    """
    A row of data. Values within a row can be accessed by column name or column
    index. Row are immutable and may be shared between :class:`.Table`
    instances.

    Currently row instances are a no-op subclass of :class:`MappedSequence`.
    They are being maintained in this fashion in order to support future
    features.
    """
    pass