[Tutor] A Question about coding style

Albert-Jan Roskam sjeik_appie at hotmail.com
Thu Sep 23 03:34:59 EDT 2021


     > This style is uncommon. On a personal

     > basis I tend to use styles like this if I have several very short
     test/action pairs. Example:

         for x, y, z in some-3-tuples...:
             if x < 0: x = 0
             if y > 5: y = 6
             if y + z > 10: z /= 2

   ==>> I don't have Python here, but won't the "black" code prettifier
   correct this? It's in my git hooks


More information about the Tutor mailing list