Python Forum
This constructor takes no arguments
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
This constructor takes no arguments
#2
You are missing the t on init
Quote:
def __ini__(self, name):
Recommended Tutorials:
Reply


Messages In This Thread
This constructor takes no arguments - by Friend - Jun-26-2019, 02:47 PM
RE: This constructor takes no arguments - by metulburr - Jun-26-2019, 02:48 PM
RE: This constructor takes no arguments - by Friend - Jun-26-2019, 02:54 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [split] Class takes no arguments bily071 2 683 Oct-23-2023, 03:59 PM
Last Post: deanhystad
  Why doesn't calling a parent constructor work with arbitrary keyword arguments? PurposefulCoder 4 1,003 Jun-24-2023, 02:14 PM
Last Post: deanhystad
  Error TypeError: output_type_handler() takes 2 positional arguments but 6 were given paulo79 1 2,013 Oct-17-2022, 06:29 PM
Last Post: paulo79
  Not including a constructor __init__ in the class definition... bytecrunch 3 12,190 Sep-02-2021, 04:40 AM
Last Post: deanhystad
  Checking the number of arguments a function takes Chirumer 3 2,229 Jul-06-2021, 04:56 PM
Last Post: Chirumer
  Class Takes No Arguments horuscope42 4 4,901 Oct-26-2020, 11:10 PM
Last Post: not_username1234
  syntaxerror when entering a constructor MaartenRo 2 2,023 Aug-03-2020, 02:09 PM
Last Post: MaartenRo
  Class takes no arguments Nazartfya 2 4,647 Jun-27-2020, 12:45 PM
Last Post: Nazartfya
  Why Car() takes no arguments louis216 2 2,668 Jun-25-2020, 03:16 AM
Last Post: louis216
  random.choice() takes two positional arguments, but three were given. ShakeyPakey 5 11,861 May-31-2020, 03:13 PM
Last Post: deanhystad

Forum Jump:

User Panel Messages

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