Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
anonymous method in a class
#5
basically i was asking if there was a way to hide the methods like i hide functions (and variables) in a module. i'll try defining functions inside a method. this is a class with only one method (beyond init) so putting them there won't be an issue.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Messages In This Thread
anonymous method in a class - by Skaperen - May-16-2021, 07:34 PM
RE: anonymous method in a class - by Gribouillis - May-18-2021, 10:02 AM
RE: anonymous method in a class - by Skaperen - May-18-2021, 06:45 PM
RE: anonymous method in a class - by Gribouillis - May-18-2021, 07:12 PM
RE: anonymous method in a class - by Skaperen - May-18-2021, 11:49 PM
RE: anonymous method in a class - by Gribouillis - May-19-2021, 06:54 AM
RE: anonymous method in a class - by Skaperen - May-21-2021, 06:31 PM
RE: anonymous method in a class - by Gribouillis - May-21-2021, 07:05 PM
RE: anonymous method in a class - by Skaperen - May-23-2021, 11:17 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  class definition and problem with a method HerrAyas 2 330 Apr-01-2024, 03:34 PM
Last Post: HerrAyas
  super() and order of running method in class inheritance akbarza 7 861 Feb-04-2024, 09:35 AM
Last Post: Gribouillis
  Using one child class method in another child class garynewport 5 1,706 Jan-11-2023, 06:07 PM
Last Post: garynewport
  [Solved] Novice question to OOP: can a method of class A access attributes of class B BigMan 1 1,360 Mar-14-2022, 11:21 PM
Last Post: deanhystad
  class, attribute and method Frankduc 9 2,586 Feb-27-2022, 09:07 PM
Last Post: deanhystad
  Subclass initialized property used in parent class method. Is it bad coding practice? saavedra29 5 1,910 Feb-07-2022, 07:29 PM
Last Post: saavedra29
  Class Method to Calculate Age Doesn't Work gdbengo 1 1,753 Oct-30-2021, 11:20 PM
Last Post: Yoriz
  How to apply a class method to an entire dataframe column tirtha9 1 5,206 Jan-03-2021, 04:44 AM
Last Post: klllmmm
  NameError when calling a class method mfreudenberg 2 2,363 Sep-25-2020, 07:40 AM
Last Post: mfreudenberg
  Using one method's result for another method in the same Class? btownboy 3 2,394 Sep-13-2020, 06:37 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