Changes between Version 2 and Version 3 of Orange25/NameDeprecationDecorators


Ignore:
Timestamp:
04/11/11 09:04:40 (3 years ago)
Author:
marko
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Orange25/NameDeprecationDecorators

    v2 v3  
    11Aleš has written function decorators to help us maintain backward compatibility when the names of object attributes, methods or keyword arguments of function change: '''deprecated_keywords''' and '''deprecated_members'''. Both are in Orange.misc. 
    22 
    3 '''WARNING''': Do not use '''deprecated_members''' as s decorator, because python 2.5 does not support class decorator. Run it explicitly, as a function (see the example below). 
     3'''WARNING''': Do not use '''deprecated_members''' as s decorator, because python 2.5 does not support class decorators. Run it explicitly, as a function (see the example below). 
    44 
    55A use case example. ImputeLearner in orngImpute.py (prior to the development of Orange 2.5) looked like this: