abbrtask
Abbreviate task name.
def abbrtask(
S: str,
max: int
) - > str
Abbreviate task name.
Parameters
| Name | Type | Description |
|---|---|---|
| S | str | The full task name or module path to be abbreviated. |
| max | int | The maximum allowed character length for the resulting task name string. |
Returns
| Type | Description |
|---|---|
str | The abbreviated task name, using a dot-bracket notation if the original string exceeds the maximum length, or '???' if the input is null. |