Python Forum
a class calling one of its own methods?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
a class calling one of its own methods?
#1
when a method in a class calls one on its own methods (either a different one or itself) does it need to pass self in arg 1 or is it also included just like a call from outside?
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#2
It is just like a call from outside.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Calling methods and getting results out HerrAyas 4 274 Apr-02-2024, 09:37 PM
Last Post: deanhystad
  Class test : good way to split methods into several files paul18fr 4 469 Jan-30-2024, 11:46 AM
Last Post: Pedroski55
  Structuring a large class: privite vs public methods 6hearts 3 1,047 May-05-2023, 10:06 AM
Last Post: Gribouillis
  PyRun_SimpleFile calling multiprocessing Python Class cause endless init loop Xeno 2 1,035 Sep-19-2022, 02:32 AM
Last Post: Xeno
  Calling a base class variable from an inherited class CompleteNewb 3 1,673 Jan-20-2022, 04:50 AM
Last Post: CompleteNewb
  Calling a class from a function jc4d 5 1,807 Dec-17-2021, 09:04 PM
Last Post: ndc85430
  Calling functions from within a class: PYQT6 Anon_Brown 4 3,751 Dec-09-2021, 12:40 PM
Last Post: deanhystad
  access share attributed among several class methods drSlump 0 1,056 Nov-18-2021, 03:02 PM
Last Post: drSlump
  a function common to methods of a class Skaperen 7 2,567 Oct-04-2021, 07:07 PM
Last Post: Skaperen
  Listing All Methods Of Associated With A Class JoeDainton123 3 2,332 May-10-2021, 01:46 AM
Last Post: deanhystad

Forum Jump:

User Panel Messages

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