Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dunder Methods
#2
I'm not sure what you're really trying to do. The methods for less than, etc. are supposed to be implemented when you want your class to be used with those comparisons. It wouldn't make sense to return a message from them. The Python docs should tell you what the contract for those should be (I'm unable to find them at the moment).
Reply


Messages In This Thread
Dunder Methods - by menator01 - Mar-22-2022, 07:03 PM
RE: Dunder Methods - by ndc85430 - Mar-22-2022, 07:11 PM
RE: Dunder Methods - by menator01 - Mar-22-2022, 07:24 PM
RE: Dunder Methods - by deanhystad - Mar-22-2022, 07:56 PM
RE: Dunder Methods - by menator01 - Mar-22-2022, 08:32 PM
RE: Dunder Methods - by deanhystad - Mar-22-2022, 09:15 PM
RE: Dunder Methods - by snippsat - Mar-23-2022, 01:40 PM
RE: Dunder Methods - by menator01 - Mar-23-2022, 08:44 PM
RE: Dunder Methods - by deanhystad - Mar-24-2022, 03:58 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  a function name dunder Skaperen 3 1,082 May-29-2024, 06:13 PM
Last Post: Gribouillis
  Hi, looking for "dunder" tutorials. AlluminumFoil 3 2,882 Mar-02-2020, 08:37 PM
Last Post: jefsummers

Forum Jump:

User Panel Messages

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