Python Forum
get docstring to work with another block of text at the top
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
get docstring to work with another block of text at the top
#1
i want to assign the text of the license for my script to a variable. and i want this to be the first block of text one sees when slowly reading the file. but if i put this assignment first, then the docstring will not be set up. is there a way around this conflict?
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
get docstring to work with another block of text at the top - by Skaperen - Dec-28-2019, 04:57 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  a longer docstring Skaperen 8 1,734 Aug-25-2022, 11:21 PM
Last Post: Skaperen
  How to write in text file - indented block Joni_Engr 4 6,579 Jul-18-2022, 09:09 AM
Last Post: Hathemand
  Getting a GET request output text into a variable to work with it. LeoT 2 3,146 Feb-24-2021, 02:05 PM
Last Post: LeoT
  calling a method for a docstring Skaperen 8 3,113 Jan-27-2020, 01:16 AM
Last Post: Skaperen
  capture next block of text after finding error in file kdefilip2 6 3,545 Nov-27-2019, 07:36 PM
Last Post: buran
  How work with formatted text in Python? AlekseyPython 3 2,857 Mar-18-2019, 05:00 AM
Last Post: AlekseyPython
  Strip does not work when applied on a string read from a text file. susmis666 1 2,456 Dec-27-2018, 07:07 AM
Last Post: perfringo
  ptpython docstring metulburr 4 4,534 Nov-17-2017, 01:36 AM
Last Post: metulburr

Forum Jump:

User Panel Messages

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