Skip to main content
added 93 characters in body; added 61 characters in body
Source Link
ptikobj
  • 2.7k
  • 7
  • 39
  • 67

cl2 has to be an attributesorry, not a class.i was wrong: whenyour problem is probably that you writehave a circular import: x f1 imports f2 and vice versa.y check your design, as it means that y has tousually should be an attribute of the class of xpossible to design your software without a circular import.

see: this

cl2 has to be an attribute, not a class. when you write: x.y it means that y has to be an attribute of the class of x

sorry, i was wrong: your problem is probably that you have a circular import: f1 imports f2 and vice versa. check your design, as it usually should be possible to design your software without a circular import.

see: this

Source Link
ptikobj
  • 2.7k
  • 7
  • 39
  • 67

cl2 has to be an attribute, not a class. when you write: x.y it means that y has to be an attribute of the class of x