Python Forum
Mysterious Indentation Problem
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Mysterious Indentation Problem
#10
Hi,

Quote: I think of docstring just as a special kind of comment, and those require triple quotes.
I waited for that coming up... Docstrings are for documentation purposes, as the name says. Docstring can be read without looking into the source code, comments not. Comments give _additional_ info when reading through the source code, docstrings give info on how to use a class / function / ... - that's not the same.
And abusing docstrings for comments is still wrong.

Except this, the original post talked about double quotes, not triple quotes.

Regards, noisefloor
Reply


Messages In This Thread
Mysterious Indentation Problem - by Dakodak - Jun-20-2019, 03:10 PM
RE: Mysterious Indentation Problem - by ichabod801 - Jun-20-2019, 04:36 PM
RE: Mysterious Indentation Problem - by Dakodak - Jun-21-2019, 06:55 AM
RE: Mysterious Indentation Problem - by noisefloor - Jun-21-2019, 07:02 AM
RE: Mysterious Indentation Problem - by Dakodak - Jun-21-2019, 07:08 AM
RE: Mysterious Indentation Problem - by DeaD_EyE - Jun-21-2019, 07:38 AM
RE: Mysterious Indentation Problem - by Dakodak - Jun-21-2019, 09:52 AM
RE: Mysterious Indentation Problem - by noisefloor - Jun-21-2019, 11:11 AM
RE: Mysterious Indentation Problem - by ichabod801 - Jun-21-2019, 12:38 PM
RE: Mysterious Indentation Problem - by noisefloor - Jun-21-2019, 01:49 PM
RE: Mysterious Indentation Problem - by metulburr - Jun-21-2019, 03:35 PM
RE: Mysterious Indentation Problem - by Dakodak - Jun-24-2019, 06:23 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Mysterious Extra New-Line trevorkavanaugh 2 2,528 Feb-27-2019, 07:13 PM
Last Post: trevorkavanaugh
  Indentation if/else problem Rikk 3 2,813 May-25-2018, 01:10 PM
Last Post: buran
  Mysterious syntax errors... help? friendlymegalomaniac 3 3,030 Apr-26-2018, 09:22 PM
Last Post: micseydel

Forum Jump:

User Panel Messages

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