Is it possible to access the name of a superclass static method, when
defining a subclass attribute, without specifically naming the super-
class?

Contrived example:

  class SuperClass(object):
      @staticmethod
      def foo():
          pass

  class SubClass(SuperClass):
      bar = SuperClass.foo
            ^^^^^^^^^^

Is there a way to do this without specifically naming 'SuperClass'?

--
========================================================================
Google                                      Where SkyNet meets Idiocracy
========================================================================
--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to