MCPcopy Index your code
hub / github.com/PyTables/PyTables / Description

Class Description

tables/description.py:330–803  ·  view source on GitHub ↗

This class represents descriptions of the structure of tables. An instance of this class is automatically bound to Table (see :ref:`TableClassDescr`) objects when they are created. It provides a browseable representation of the structure of the table, made of non-nested (Col - see

Source from the content-addressed store, hash-verified

328# Table description classes
329# =========================
330class Description:
331 """This class represents descriptions of the structure of tables.
332
333 An instance of this class is automatically bound to Table (see
334 :ref:`TableClassDescr`) objects when they are created. It provides a
335 browseable representation of the structure of the table, made of non-nested
336 (Col - see :ref:`ColClassDescr`) and nested (Description) columns.
337
338 Column definitions under a description can be accessed as attributes of it
339 (*natural naming*). For instance, if table.description is a Description
340 instance with a column named col1 under it, the later can be accessed as
341 table.description.col1. If col1 is nested and contains a col2 column, this
342 can be accessed as table.description.col1.col2. Because of natural naming,
343 the names of members start with special prefixes, like in the Group class
344 (see :ref:`GroupClassDescr`).
345
346 .. rubric:: Description attributes
347
348 .. attribute:: _v_colobjects
349
350 A dictionary mapping the names of the columns hanging
351 directly from the associated table or nested column to their
352 respective descriptions (Col - see :ref:`ColClassDescr` or
353 Description - see :ref:`DescriptionClassDescr` instances).
354
355 .. versionchanged:: 3.0
356 The *_v_colObjects* attribute has been renamed into
357 *_v_colobjects*.
358
359 .. attribute:: _v_dflts
360
361 A dictionary mapping the names of non-nested columns
362 hanging directly from the associated table or nested column
363 to their respective default values.
364
365 .. attribute:: _v_dtype
366
367 The NumPy type which reflects the structure of this
368 table or nested column. You can use this as the
369 dtype argument of NumPy array factories.
370
371 .. attribute:: _v_dtypes
372
373 A dictionary mapping the names of non-nested columns
374 hanging directly from the associated table or nested column
375 to their respective NumPy types.
376
377 .. attribute:: _v_is_nested
378
379 Whether the associated table or nested column contains
380 further nested columns or not.
381
382 .. attribute:: _v_itemsize
383
384 The size in bytes of an item in this table or nested column.
385
386 .. attribute:: _v_name
387

Callers 6

__init__Method · 0.85
descr_from_dtypeFunction · 0.85
dtype_from_descrFunction · 0.85
description.pyFile · 0.85
__init__Method · 0.85
_g_openMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected