Changeset 7830:02f2230eb773 in orange


Ignore:
Timestamp:
04/11/11 14:20:11 (3 years ago)
Author:
markotoplak
Branch:
default
Convert:
003fdea8c52df101b17b1ee6aaa7c5918c2f52f6
Message:

Variable: how are additional attributes stored in a file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/Orange/data/variable.py

    r7818 r7830  
    273273All variables have a field :obj:`~Variable.attributes`. It is a dictionary 
    274274which can contain strings. Although the current implementation allows all 
    275 types of value we strongly advise to use only strings. An exmaple: 
     275types of value we strongly advise to use only strings. An example: 
    276276 
    277277.. literalinclude:: code/attributes.py 
     278 
     279The attributes can only be saved to a .tab file. They are listed in the 
     280third line in <name>=<value> format, after other attribute specifications 
     281(such as "meta" or "class"), and are separated by spaces.  
    278282 
    279283Reuse of descriptors 
Note: See TracChangeset for help on using the changeset viewer.