scott-griffiths / bitstring

A Python module to help you manage your bits
https://bitstring.readthedocs.io/en/stable/index.html
MIT License
401 stars 67 forks source link

Shortcut for current dtype in pp. #313

Open scott-griffiths opened 5 months ago

scott-griffiths commented 5 months ago

Suggest allowing '_' to represent the current dtype when using pp.

This would be indispensable when using scaled dtypes along with another interpretation.

>>> s.pp('_, bin')