source: orange/docs/reference/rst/code/instance-metavar.py @ 9936:08300d990d26

Revision 9936:08300d990d26, 177 bytes checked in by markotoplak, 2 years ago (diff)

moved new_meta_ide from feature to feature.Descriptor

Line 
1import random
2import Orange
3lenses = Orange.data.Table("lenses")
4id = Orange.feature.Descriptor.new_meta_id()
5for inst in lenses:
6    inst[id] = random.random()
7print lenses[0]
Note: See TracBrowser for help on using the repository browser.