Changeset 4608:6f6be97dd494 in orange


Ignore:
Timestamp:
04/22/08 21:07:28 (6 years ago)
Author:
janezd <janez.demsar@…>
Branch:
default
Convert:
35130b937373642997b5680a9b5fd2d474fc15bf
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/doc/reference/Example.htm

    r4087 r4608  
    284284<DD>Obsolete functions for setting and getting meta values.</DD> 
    285285 
    286 <dt>getmetas([key-type])</dt> 
     286<dt>getmetas([key-type]), getmetas(optional, [key-type])</dt> 
    287287<dd>Returns example's meta values as a dictionary. Key type can be <code>int</code> (default), <code>str</code> or <code>orange.Variable</code>, and determines whether the keys in the dictionary will be meta-id's, attribute names or attribute descriptors. In the latter two cases, the function will only return the meta values that are registered in the domain (there are no descriptors/names associated with other values). In either case, the dictionary contains only a copy of the values: changing the dictionary won't affect the example's meta values.</p> 
     288 
     289<p>Argument 'optional' tells the method to return only the optional or the non-optional meta attributes. If absent, both types of attributes are returned.</p> 
    288290 
    289291<P>The below code will print out the dictionary with all four possible key-types.</P> 
Note: See TracChangeset for help on using the changeset viewer.