Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
function vs method
#1
Hi All,

I am new to python , i was reading about function and method and it seems to me that function is like static method in java (kind of , no need to refer class to call this method.) and method is like class instance method.

You can call function without referring which class this function belong to.

Is this right approach to think ?
Reply


Messages In This Thread
function vs method - by prateekshaw - Nov-14-2019, 01:30 PM
RE: function vs method - by ichabod801 - Nov-14-2019, 01:54 PM
RE: function vs method - by DeaD_EyE - Nov-14-2019, 07:00 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  i want to use type= as a function/method keyword argument Skaperen 9 2,096 Nov-06-2022, 04:28 AM
Last Post: Skaperen
  Building a method name in a function ffgth 9 3,463 Oct-19-2020, 01:21 PM
Last Post: buran
  function/method help myv5285 3 2,913 May-17-2020, 04:19 AM
Last Post: buran
  Accessing method as function object ClassicalSoul 2 2,095 Feb-14-2020, 09:31 PM
Last Post: wavic
  I'm trying to figure out whether this is a method or function call 357mag 2 2,522 Jul-04-2019, 01:43 AM
Last Post: ichabod801
  function method problems drchar 2 3,010 Dec-11-2018, 02:38 PM
Last Post: buran
  Understanding Method/Function robdhunter 2 2,731 Mar-10-2018, 11:57 PM
Last Post: robdhunter
  How to pass value from method to function iFunKtion 11 8,972 May-23-2017, 05:06 PM
Last Post: iFunKtion
  init vs_init_ while defining method/function? hsunteik 1 3,721 Dec-24-2016, 08:27 AM
Last Post: micseydel

Forum Jump:

User Panel Messages

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