Serhiy Storchaka added the comment: > 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. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30571> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com