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
#9
i have a docstring. it's not exactly what i want. appending a certain method call to a string like that makes a string that into what i want.

it is my understanding that the first unassigned value in a unit of code (such as a script file, a function, or a class, assigns that str to the __doc__ string for that unit of code. however, when i tried it, __doc__ was None.
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,711 Aug-25-2022, 11:21 PM
Last Post: Skaperen
  NameError when calling a class method mfreudenberg 2 2,331 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,859 Apr-29-2020, 07:49 PM
Last Post: deanhystad
  get docstring to work with another block of text at the top Skaperen 4 2,474 Dec-28-2019, 10:37 PM
Last Post: Skaperen
  ptpython docstring metulburr 4 4,506 Nov-17-2017, 01:36 AM
Last Post: metulburr
  calling Class method inside the Class definition tkj80 1 3,737 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