Variable: python-indent-block-paren-deeper

python-indent-block-paren-deeper is a customizable variable defined in python.el.gz.

Value

nil

Documentation

Increase indentation inside parens of a block.

If non-nil, increase the indentation of the lines inside parens in a header of a block when they are indented to the same level as the body of the block:

    if (some_expression
            and another_expression):
        do_something()

instead of:

    if (some_expression
        and another_expression):
        do_something()

This variable only works if the opening paren is followed by non-whitespace characters on the same line. Modify python-indent-def-block-scale to customize the case where non-whitespace character does not follow the opening paren on the same line.

This variable was added, or its default value changed, in Emacs 30.1.

Probably introduced at or before Emacs version 30.1.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/python.el.gz
(defcustom python-indent-block-paren-deeper nil
  "Increase indentation inside parens of a block.
If non-nil, increase the indentation of the lines inside parens
in a header of a block when they are indented to the same level
as the body of the block:

    if (some_expression
            and another_expression):
        do_something()

instead of:

    if (some_expression
        and another_expression):
        do_something()

This variable only works if the opening paren is followed by
non-whitespace characters on the same line.  Modify
`python-indent-def-block-scale' to customize the case where
non-whitespace character does not follow the opening paren on the
same line."
  :version "30.1"
  :type 'boolean
  :safe 'booleanp)