C. · @cazabon
166 followers · 4009 posts · Server mindly.social

@folkerschamel @zenforyen @kevin @ado

Actually, I think that in the are usually *better* than having them in . Not only can they not get out of date / become wrong (without causing checking failures), static type checking is much easier this way.

#type #hints #function #signature #docstrings

Last updated 1 year ago

Alexandre B A Villares šŸ · @villares
874 followers · 1493 posts · Server ciberlandia.pt

question:
How do you talk about \n chars in ? do you r""" the docstring?
Do you spell out "new line char"?

#python #docstrings

Last updated 2 years ago

Paolo Melchiorre · @paulox
635 followers · 546 posts · Server fosstodon.org

šŸŒ Ā I created a repository with my solutions for the puzzles

šŸ§©Ā All solutions use only theĀ Ā with no need for external packages

šŸ”¬Ā  are included in function and can be run using theĀ Ā module

āš ļø I don't think I will be able to enter the every day and definitely not in the morning

šŸ I participate in to my Python rather than to compete in the

šŸ‘‡
github.com/pauloxnet/adventofc

#github #python #adventofcode #pythonstandardlibrary #tests #docstrings #doctest #solutions #aoc #improve #knowledge #leaderboard

Last updated 2 years ago

Thomas Arildsen · @arildsen
58 followers · 200 posts · Server fosstodon.org

@HeidiSeibold I try to document my software well. Keep documentation and code together. I believe this makes it less likely to get out of sync.
In , are great for usage documentation. They are embedded in the code and at the same time facilitate automatic generation of nicely formatted, coherent documentation.
I also try to improve code readability by opting for more self-explanatory code structures and naming and comment sparingly where necessary.

#python #docstrings

Last updated 2 years ago