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.

Title: hex() and oct() documentation is incorrect
Type: Stage:
Components: Documentation Versions: Python 2.4
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: ncoghlan, rhettinger
Priority: normal Keywords:

Created on 2004-09-27 06:10 by ncoghlan, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg22554 - (view) Author: Nick Coghlan (ncoghlan) * (Python committer) Date: 2004-09-27 06:10
The documentation for hex() and oct() in the library
reference currently still says they return unsigned
literals only.

With the progress of int/long unification, they no
longer do this. hex(-1) now returns "-0x1". This is
required so that "eval(hex(-1)) == -1" continues to be
msg22555 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2004-09-30 00:59
Logged In: YES 

  \versionchanged{Formerly only returned an unsigned
Date User Action Args
2022-04-11 14:56:07adminsetgithub: 40955
2004-09-27 06:10:39ncoghlancreate