Python Forum
Return boolean from recursive class method
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Return boolean from recursive class method
#4
Your recursive calls don't have return statements, so those branches end up returning None.
Reply


Messages In This Thread
RE: Return boolean from recursive class method - by ndc85430 - Jul-13-2020, 04:18 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  class definition and problem with a method HerrAyas 2 311 Apr-01-2024, 03:34 PM
Last Post: HerrAyas
  super() and order of running method in class inheritance akbarza 7 838 Feb-04-2024, 09:35 AM
Last Post: Gribouillis
  function return boolean based on GPIO pin reading caslor 2 1,234 Feb-04-2023, 12:30 PM
Last Post: caslor
  Using one child class method in another child class garynewport 5 1,687 Jan-11-2023, 06:07 PM
Last Post: garynewport
  [Solved] Novice question to OOP: can a method of class A access attributes of class B BigMan 1 1,356 Mar-14-2022, 11:21 PM
Last Post: deanhystad
  class, attribute and method Frankduc 9 2,551 Feb-27-2022, 09:07 PM
Last Post: deanhystad
  Subclass initialized property used in parent class method. Is it bad coding practice? saavedra29 5 1,888 Feb-07-2022, 07:29 PM
Last Post: saavedra29
  Need to parse a list of boolean columns inside a list and return true values Python84 4 2,158 Jan-09-2022, 02:39 AM
Last Post: Python84
  Class Method to Calculate Age Doesn't Work gdbengo 1 1,739 Oct-30-2021, 11:20 PM
Last Post: Yoriz
  anonymous method in a class Skaperen 8 3,668 May-23-2021, 11:17 PM
Last Post: Skaperen

Forum Jump:

User Panel Messages

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