This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients cheryl.sabella, eric.smith, lisroach, mark.dickinson, rhettinger, serhiy.storchaka, talin
Date 2017-06-12.08:20:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1497255655.92.0.880661493903.issue30571@psf.upfronthosting.co.za>
In-reply-to
Content
> The idea is that modifier (such as "!" would require a width argument (the signed representation only make sense in fixed width concepts as every assembly language programmer knows).  Its presence would also imply the "0".

I would use the precision for this. Truncating the number of digits in integer representation is similar to truncating the number of characters for strings.

But actually I don't think we should add such feature in the core. It has very limited application. This can be implemented as a third-part library.

Actually I think the stdlib needs something like bitarray and/or bitset. The specially purposed types that allow testing and modifying separate bits and bit ranges.
History
Date User Action Args
2017-06-12 08:20:55serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, talin, mark.dickinson, eric.smith, lisroach, cheryl.sabella
2017-06-12 08:20:55serhiy.storchakasetmessageid: <1497255655.92.0.880661493903.issue30571@psf.upfronthosting.co.za>
2017-06-12 08:20:55serhiy.storchakalinkissue30571 messages
2017-06-12 08:20:55serhiy.storchakacreate