We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It'd be nice to be able to set settings for pp with keyword arguments instead of using a new Config instance when we want to use it differently.
pp
Config
Perhaps something like:
def pp(o, output=True, max_depth=None, config=None, indent=None, width=None, sort_keys=None): """print data beautifully """ config = config or Config() if max_depth is not None: config.max_depth = max_depth if indent is not None: assert indent >= 0 config.indent_char = u' ' * indent if width is not None: assert width >= 0 config.string_break_width = width if sort_keys is not None: config.dict_ordered_key_enable = bool(sort_keys) ...
Ideally, it'd be better to include the default arguments instead of just None, but first you'd need to address the bug #17
None
The text was updated successfully, but these errors were encountered:
Supported already?
pp(o, instance_repr_enable=False, max_depth=2)
Sorry, something went wrong.
No branches or pull requests
It'd be nice to be able to set settings for
pp
with keyword arguments instead of using a newConfig
instance when we want to use it differently.Perhaps something like:
Ideally, it'd be better to include the default arguments instead of just
None
, but first you'd need to address the bug #17The text was updated successfully, but these errors were encountered: