Author rhettinger
Recipients cheryl.sabella, eric.smith, lisroach, mark.dickinson, rhettinger, serhiy.storchaka, talin
Date 2017-06-12.08:00:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
This is a recurring need in my teaching of Python to hardware engineers.   The whole point of having a binary format code is to show which bits are set.  For negative values, that need is not being served by the current option.  And it makes it awkward when modeling the effects of bitwise operations on signed numbers.

I can understand a -1 if you think this is fundamentally broken, but if you're just saying that you've never personally needed this or casually dismissing the awkwardness of the usual workarounds, then it seems like a meaningless vote that blows-off my proposal which is based on real-world classroom experiences.

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".

Serhiy, I believe you've either read different maillist posts than I have or that you're misinterpreting this as a proposal for a fixed width integer type with automatic wrap-around and truncation (full emulation of a register).  This proposal is for display formatting only.  IMO, it remedies a deficiency where the current option is more for our convenience (not wanting to deal with the width) rather than for the user's convenience where the user wants to see which bits are set rather than seeing a minus sign (which is both obvious and useless).

Also, when a senior coredev presents a proposal, I expect that it will be greeted with a little more open mindedness and not instantly shot down as if I have no idea what I'm talking about.
Date User Action Args
2017-06-12 08:00:04rhettingersetrecipients: + rhettinger, talin, mark.dickinson, eric.smith, serhiy.storchaka, lisroach, cheryl.sabella
2017-06-12 08:00:04rhettingersetmessageid: <>
2017-06-12 08:00:03rhettingerlinkissue30571 messages
2017-06-12 08:00:02rhettingercreate