Python Forum
a Word Inside Parenthesis in Class Decleration
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
a Word Inside Parenthesis in Class Decleration
#2
Object refers to the base object class; it serves as the foundation of all objects in Python. In this particular case, this means that the class SomeName inherits from object - it has all the attributes and methods of object.

As I recall, this is the old syntax. Class definition used to require an explicit inheritance of object. In Python 3, you do not need to explicitly reference object.
Reply


Messages In This Thread
RE: a Word Inside Parenthesis in Class Decleration - by stullis - Dec-18-2018, 01:07 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
Question Problem: Check if a list contains a word and then continue with the next word Mangono 2 2,518 Aug-12-2021, 04:25 PM
Last Post: palladium
  Why does Python not use parenthesis to contain loops? davidorlow 3 3,495 Jun-09-2021, 06:33 AM
Last Post: Gribouillis
  Practice problem using lambda inside the class jagasrik 3 2,176 Sep-12-2020, 03:18 PM
Last Post: deanhystad
  How to read file inside class Mekala 11 12,538 May-02-2020, 11:36 AM
Last Post: snippsat
  Python Speech recognition, word by word AceScottie 6 16,027 Apr-12-2020, 09:50 AM
Last Post: vinayakdhage
  Is it mandatory to call superclass init inside the class init? psolar 3 6,067 Feb-14-2020, 09:16 PM
Last Post: wavic
  print a word after specific word search evilcode1 8 4,866 Oct-22-2019, 08:08 AM
Last Post: newbieAuggie2019
  parenthesis around a tuple of literals in a for Skaperen 2 2,192 Aug-25-2019, 03:00 AM
Last Post: Skaperen
  Parenthesis in User-Defined Functions giorgitsu 2 1,984 Aug-07-2019, 12:56 PM
Last Post: ThomasL
  Get variable from class inside another class hcne 3 2,830 Mar-30-2019, 03:02 PM
Last Post: ichabod801

Forum Jump:

User Panel Messages

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