[issue8062] PEP 3101 string formatting missing hexadecimal separator _ for every 4 hex digits

2010-03-06 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: I'm confused: are you talking about producing underscores when formatting an integer for hexadecimal output, or allowing numeric literals to contain underscores? Your perl example produces: 305441741 with not an underscore in sight. I'm

[issue8062] PEP 3101 string formatting missing hexadecimal separator _ for every 4 hex digits

2010-03-06 Thread steven Michalske
steven Michalske smichal...@gmail.com added the comment: Sorry my request is for output, I am not requesting input. The examples were for showing the use in other contexts of using an underscore as a word (4 hex digits) seperaror. My assertions are from another area aside from computer

[issue8062] PEP 3101 string formatting missing hexadecimal separator _ for every 4 hex digits

2010-03-05 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: How common is this 'common practice'? Could you point to some publicly available examples? Are there other languages that have built-in facilities for dealing with hexadecimal representations of integers in this way? I think I've seen hex

[issue8062] PEP 3101 string formatting missing hexadecimal separator _ for every 4 hex digits

2010-03-05 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Closing this for now; if you want to pursue this, please take the suggestion to the python-ideas mailing list. -- resolution: - rejected status: open - closed ___ Python tracker

[issue8062] PEP 3101 string formatting missing hexadecimal separator _ for every 4 hex digits

2010-03-05 Thread steven Michalske
steven Michalske smichal...@gmail.com added the comment: I'll work on a proposal for the ideas list. Other language examples to keep this in a thread though. perl -e 'print 0x1234_abcd; print \n;' C/C++ seems to not support the underscore. Lua unsupported. Data sheets from micro controllers

[issue8062] PEP 3101 string formatting missing hexadecimal separator _ for every 4 hex digits

2010-03-04 Thread steven Michalske
New submission from steven Michalske smichal...@gmail.com: It is a common practice to separate hex digits with a thousands separator every 4 hex digits. 0x1234_abcd Although python does not accept the _ as a thousands separator in hex notation, neither is the thousands separator in base 10