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

Feature request: do not print object's attributes which start with a _ #23

Open
ghost opened this issue Dec 21, 2017 · 0 comments
Open

Comments

@ghost
Copy link

ghost commented Dec 21, 2017

Currently, if we print an object, every attribute starting with an _, which we want to hide in class implementation, is printed. Can we add an option to hide those attributes? For example,

class A:
    def __init__(self):
        self._a = 1
        self.b = 2

>>> from beeprint import pp

>>> pp(A())
instance(A):
  _a: 1,
  b: 2

But I do not want A._a to be printed. Could you please make it?

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

No branches or pull requests

0 participants