Skip to content

Wrong output when arg_name is True and *args used #124

@Holiday-Zhuyichen

Description

@Holiday-Zhuyichen

Objprint's printing function op, don't print all arguments or print keyword arguments:

from objprint import op

args = [1, 2, 3]
op(1.1, 2.2, 3.3, *args, arg_name=True)

The above program outputs:

1.1:
1.1
2.2:
2.2
3.3:
3.3
*args:
1
arg_name=True:
2

The expected output is:

1.1:
1.1
2.2:
2.2
3.3:
3.3
*args:
[1, 2, 3]

I will link a PR to it soon.

Version Info:
Objprint Version: 0.3.0
Operating System: Windows 11

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions