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

Add a pprint long name for pp command, useful when masked by any pp variable in scope #500

Open
goodboy opened this issue Jul 13, 2022 · 1 comment

Comments

@goodboy
Copy link

goodboy commented Jul 13, 2022

The pretty print command pp in the repl doesn't seem have an equivalent long name (like pprint) and is covered by the so called smart command parsing.

!!pp obviously works but i think a long name might be handy?

@goodboy goodboy changed the title pp command masks any pp variable in scope Add a pprint long name for pp command, useful when masked by any pp variable in scope Jul 13, 2022
@oxtna
Copy link

oxtna commented Jul 26, 2022

Isn't this basically the same as making an alias in the configuration file, i. e.

class Config(pdb.DefaultConfig):
    [...]
    def setup(self, pdb):
        Pdb = pdb.__class__
        Pdb.do_pprint = Pdb.do_pp

?

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

No branches or pull requests

3 participants