• name of the package (or style) that uses lots of extra lines in Python

    From HenHanna@21:1/5 to All on Tue Aug 20 21:55:20 2024
    XPost: comp.lang.python

    What's the name of the package (or style) that uses
    lots of extra lines in Python programming?

    it looks like this:

    main()
    {
    int c;
    .......
    }

    like Begin-End of Algol, Pascal from 1960's and 1970's.



    it'd look like this in Lisp:

    (define (fact x)
    (begin
    (if (zero? x)
    1
    (* x
    (fact
    (- x
    1)
    )
    )
    )
    )
    )

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From rbowman@21:1/5 to HenHanna on Wed Aug 21 07:56:00 2024
    XPost: comp.lang.python

    On Tue, 20 Aug 2024 21:55:20 -0700, HenHanna wrote:

    What's the name of the package (or style) that uses
    lots of extra lines in Python programming?

    it looks like this:

    main()
    {
    int c; .......
    }

    like Begin-End of Algol, Pascal from 1960's and 1970's.


    If it looks like that it's C not Python.

    https://peps.python.org/pep-0008/#blank-lines

    'black' is a formatter that will neaten up a file. 'ruff' does quite a bit
    more but also can format. If you're stingy with whitespace either will add extra lines.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)