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.

classification
Title: FutureWarning: %u/%o/%x/%X of negative int will return a sig
Type: Stage:
Components: None Versions: Python 2.3
process
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: Nosy List: duncangrantuk, georg.brandl
Priority: normal Keywords:

Created on 2003-06-19 16:35 by duncangrantuk, last changed 2022-04-10 16:09 by admin. This issue is now closed.

Messages (2)
msg16527 - (view) Author: Duncan Grant (duncangrantuk) Date: 2003-06-19 16:35
printf style formatting:

"FutureWarning: %u/%o/%x/%X of negative int will return a signed string in Python 2.4 and up"

The library reference clearly states that these are UNSIGNED representations, so the Futurewarning must be spurious!

Please tell me you don't really intend to break this in 2.4 !!!!

In 20+ yrs of low level bit-twiddling I have never ever wanted a signed hexadecimal. The idea of a signed hex or octal is just plain stupid. 
msg16528 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2005-05-31 11:30
Logged In: YES 
user_id=1188172

Now that this has already been "broken", the bug can be closed.
History
Date User Action Args
2022-04-10 16:09:20adminsetgithub: 38683
2003-06-19 16:35:26duncangrantukcreate