Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the output order of line number and arg name #67

Closed
riyadparvez opened this issue May 5, 2022 · 1 comment · Fixed by #68
Closed

Change the output order of line number and arg name #67

riyadparvez opened this issue May 5, 2022 · 1 comment · Fixed by #68

Comments

@riyadparvez
Copy link

For the following example:

from objprint import config, install, objjson, op

config(line_number=True)
config(arg_name=True)

x = 1
op(x)

This is the output right now:

x:
<module> (/path/to/objprint-test.py:7)
1

What I think more intuitive is argument name followed by the value and the file and line number at the top. In this particular case:

<module> (/path/to/objprint-test.py:7)
x:
1

Any thoughts?

@gaogaotiantian
Copy link
Owner

You are right, it should be fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants