i'm a python newbie & wrote my first script, can someone critique it?

mad scientist jr mad.scientist.jr at gmail.com
Sun Jun 12 12:04:09 EDT 2016


Thanks for your reply!

On Saturday, June 11, 2016 at 2:41:39 PM UTC-4, MRAB wrote:
> Drop the next 3 comment lines. They add visual clutter, and no useful info.
> > ###############################################################################
> > # REFERENCE MODULES
> > ###############################################################################

I'm not going to argue minor points at length, because others have said the same thing here, but I will push back a little and explain that what you guys consider visual clutter, I find helps me to visually break up and quickly identify sections in my code, which is why I like those separators.

> There's an easier to make the repeated string: "+" * 79
> >     print("+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++")

Thanks, that's a good tip. In this case I might prefer showing the full line of +s because that way, wysiwyg, it's just easier to visualize the output.

Thanks again for the input. . . I will further digest what you all said and study some more (including the docstrings)



More information about the Python-list mailing list