Python Forum
calling a method for a docstring
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
calling a method for a docstring
#1
can i call a method on a docstring?
def myfunction(foo,bar):
    """this is
my docstring for
my function.""".replace('\n',' ')
    return foo+bar
will it recognize that as the docstring?
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
calling a method for a docstring - by Skaperen - Jan-25-2020, 06:59 PM
RE: calling a method for a docstring - by buran - Jan-25-2020, 07:13 PM
RE: calling a method for a docstring - by Skaperen - Jan-25-2020, 07:20 PM
RE: calling a method for a docstring - by ndc85430 - Jan-25-2020, 07:23 PM
RE: calling a method for a docstring - by Skaperen - Jan-25-2020, 07:30 PM
RE: calling a method for a docstring - by ndc85430 - Jan-25-2020, 08:14 PM
RE: calling a method for a docstring - by Skaperen - Jan-25-2020, 11:45 PM
RE: calling a method for a docstring - by ndc85430 - Jan-26-2020, 07:03 AM
RE: calling a method for a docstring - by Skaperen - Jan-27-2020, 01:16 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  a longer docstring Skaperen 8 1,717 Aug-25-2022, 11:21 PM
Last Post: Skaperen
  NameError when calling a class method mfreudenberg 2 2,335 Sep-25-2020, 07:40 AM
Last Post: mfreudenberg
  calling on a method from one class into another class which is not a child NABA 5 2,873 Apr-29-2020, 07:49 PM
Last Post: deanhystad
  get docstring to work with another block of text at the top Skaperen 4 2,479 Dec-28-2019, 10:37 PM
Last Post: Skaperen
  ptpython docstring metulburr 4 4,509 Nov-17-2017, 01:36 AM
Last Post: metulburr
  calling Class method inside the Class definition tkj80 1 3,741 Jan-23-2017, 04:15 AM
Last Post: Mekire

Forum Jump:

User Panel Messages

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