Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Composition question
#2
Source.path is instance of Folder class.
Folder class has no __repr__ or __str__ methods defined.
Read https://docs.python.org/3/reference/data...t.__repr__
https://docs.python.org/3/reference/data...ct.__str__

define Folder.__str__ method or as alternative use Logger.log2file("{} as source folder added".format(self.path.path))
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Messages In This Thread
Composition question - by kerzol81 - Jan-07-2020, 10:00 AM
RE: Composition question - by buran - Jan-07-2020, 10:21 AM
RE: Composition question - by buran - Jan-07-2020, 11:06 AM
RE: Composition question - by kerzol81 - Jan-07-2020, 11:30 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020