-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
Is it ok that input args are printed twice? #100
Comments
This is normal, and is just what happens if you use |
I was using it exactly like this :) Thank you, so I'm closing it then. |
I think returning the arguments should be configurable via an env variable. I don't use the return value much, and I can imagine it's annoying in ipython. |
Oh, that would be nice. In our case usage is primarily limited to python/ipython/django shell plus. Writing I can also suggest to consider |
Ye I thought about |
Checking if the next bytecode instruction is a |
There is always an option to add separate func that just calls current |
You can check if you're in ipython like https://github.com/samuelcolvin/pydantic/blob/9d631a3429a66f30742c1a52c94ac18ec6ba848d/pydantic/utils.py#L183 But overall I agree, I think a new method might be best. |
Sorry, I just start looking into this tool recently. But reading this issue I have a question... Why the What is the root cause of the debug returning the value it is debugging? some chaining or what? |
So that if you have some code |
I get my "debugged" vars printed both by
debug
utils and as a return val, so in case of dataclasses or big dicts (for which it fits the most) it eats all screen space.Am I missing something or it works as expected?
The text was updated successfully, but these errors were encountered: