On Thu, 2 Dec 2021 15:38:36 -0500 Federico Lucifredi <[email protected]> wrote:
Is there a decent idiom guide for Python, or perhaps a style guide if Python does not do idioms?
I can recommend Fluent Python by Luciano Ramalho as an excellent guide to Python idioms. (There are no doubt other good books as well.) I only recommend a glass of one's favorite alcoholic beverage on hand. Take a drink every time he extols the unlimited virtues of Python. It'll take the edge off. Bonus: Take a drink every time he describes more than one way to do the thing. Be careful! Occasionally, there are so many different caveats and workarounds that you just give up and decide not to use that feature. In terms of style, PEP 8 is the canonical style guide. Tim _______________________________________________ Boston-pm mailing list [email protected] https://mail.pm.org/mailman/listinfo/boston-pm

