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

More configurable default options for pp #335

Open
scott-griffiths opened this issue May 24, 2024 · 0 comments
Open

More configurable default options for pp #335

scott-griffiths opened this issue May 24, 2024 · 0 comments

Comments

@scott-griffiths
Copy link
Owner

The width, sep and offset in pp all have defaults. These could be moved to

bitstring.options.pp_width = 120
bitstring.options.pp_sep = ' '
bitstring.options.pp_show_offset = True

This should be a separate feature request, but it's related: It would also be good to add a bit_width option to pp. This would specify the number of bits to show on each line, and would override the width. I'm finding that in practice this would be a more useful thing to have.

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

1 participant