Skip to content
Advertisement

Deprecating properties of class in python [closed]

I am trying to deprecate property of class.

JavaScript

Expected behaviour: If user tries to use variable 2 he should get warning that its deprecated.

Advertisement

Answer

You can implement variable2 as a property.

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement