Changes between Version 3 and Version 4 of Orange25/NameDeprecationDecorators


Ignore:
Timestamp:
02/05/12 21:18:24 (3 years ago)
Author:
crt
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Orange25/NameDeprecationDecorators

    v3 v4  
    1 Aleš 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. 
     1Aleš has written function decorators to help us maintain backward compatibility when the names of object attributes, methods or keyword arguments of function change. Decorator '''deprecated_keywords''' is used for keyword arguments only while '''deprecated_members''' is used for object attributes, methods and keyword arguments. Both are in Orange.misc. 
    22 
    33'''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).