Also

Ever had lots of methods that do the same thing?!
Download

Also Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Other/Proprietary Li...
  • Price:
  • FREE
  • Publisher Name:
  • Huan Do
  • Publisher web site:
  • https://github.com/Doboy/

Also Tags


Also Description

You want to set them to the same thing but don't want to do something lame like:python def method(self): pass othermethod = methodRather you want to do it with style likepython @also('othermethod') def method(self): passThen do I have a solution for you!Installationpip install alsoUsagepythonfrom also import also, AlsoMetaClassclass Foo: __metaclass__ = AlsoMetaClass @also('getThing') @also('get_thing') def getthing(self): return 'go bears'foo = Foo()assert (foo.getthing() == foo.get_thing() == foo.getThing() == 'go bears')Product's homepage


Also Related Software