0

Is it possible to include all functions from a python source code file "functions.py" in another source code file with a class definition "my_class.py" and provide these functions via property "my_functions" to the user?

Example:

**functions.py**

   def function1()
   def function2()
**my_class.py**

   class my_class():

      @property
      def my_functions(self):

So, is it possible to access to this functions "function1, function2" via the object property from the class "my_class":
**main.py**

   my_class_object = my_class()
   my_class_object.my_functions.function1()
   my_class_object.my_functions.function2()

P.Schn
  • 11
  • 2

0 Answers0