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

How do you access a class method as a function object (not a function call)? The context is that I would like to use the help() function on random.shuffle(), but that results in an error because random.shuffle() prompts a function call, not the function itself.
Reply


Messages In This Thread
Accessing method as function object - by ClassicalSoul - Feb-14-2020, 04:22 PM
RE: Accessing method as function object - by buran - Feb-14-2020, 04:58 PM
RE: Accessing method as function object - by wavic - Feb-14-2020, 09:31 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  cx_oracle Error - AttributeError: 'function' object has no attribute 'cursor' birajdarmm 1 2,216 Apr-15-2023, 05:17 PM
Last Post: deanhystad
  i want to use type= as a function/method keyword argument Skaperen 9 1,777 Nov-06-2022, 04:28 AM
Last Post: Skaperen
  SystemError: <method-wrapper '__getattribute__' of EnumMeta object sciloop 4 1,455 Jul-23-2022, 07:57 PM
Last Post: sciloop
  AttributeError: 'function' object has no attribute 'metadata 3lnyn0 5 4,522 Mar-28-2022, 04:42 PM
Last Post: Larz60+
  how to call an object in another function in Maya bstout 0 2,042 Apr-05-2021, 07:12 PM
Last Post: bstout
  Building a method name in a function ffgth 9 3,132 Oct-19-2020, 01:21 PM
Last Post: buran
  accessing value array object ortollj 1 1,530 Aug-30-2020, 12:00 PM
Last Post: ortollj
  subprogram issues: cannot unpack non-iterable function object error djwilson0495 13 5,881 Aug-20-2020, 05:53 PM
Last Post: deanhystad
  accessing a second level nested function varsh 3 2,437 Aug-13-2020, 06:57 AM
Last Post: varsh
  function/method help myv5285 3 2,742 May-17-2020, 04:19 AM
Last Post: buran

Forum Jump:

User Panel Messages

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