lundi 18 juillet 2016

Order of decorator for abstract method


I have a base class which I have made abstract.

class X(metaclass=ABCMeta):

   @abstractmethod
   @tornado.gen.coroutine
   def cc(self):
      # do stuff

What should the order of the decorators go in? And does it matter?


Aucun commentaire:

Enregistrer un commentaire