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
  Class test : good way to split methods into several files paul18fr 5 3,476 Jul-17-2024, 11:12 AM
Last Post: felixandrea
  [split] Class and methods ebn852_pan 15 3,120 May-23-2024, 11:57 PM
Last Post: ebn852_pan
  Class and methods Saida2024 2 1,038 May-13-2024, 04:04 AM
Last Post: deanhystad
  Calling methods and getting results out HerrAyas 4 1,282 Apr-02-2024, 09:37 PM
Last Post: deanhystad
  Structuring a large class: privite vs public methods 6hearts 3 1,885 May-05-2023, 10:06 AM
Last Post: Gribouillis
  PyRun_SimpleFile calling multiprocessing Python Class cause endless init loop Xeno 2 1,960 Sep-19-2022, 02:32 AM
Last Post: Xeno
  Calling a base class variable from an inherited class CompleteNewb 3 2,955 Jan-20-2022, 04:50 AM
Last Post: CompleteNewb
  Calling a class from a function jc4d 5 2,822 Dec-17-2021, 09:04 PM
Last Post: ndc85430
  Calling functions from within a class: PYQT6 Anon_Brown 4 6,440 Dec-09-2021, 12:40 PM
Last Post: deanhystad
  access share attributed among several class methods drSlump 0 1,525 Nov-18-2021, 03:02 PM
Last Post: drSlump

Forum Jump:

User Panel Messages

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