[ python-Bugs-1035279 ] hex() and oct() documentation is incorrect

SourceForge.net noreply at sourceforge.net
Thu Sep 30 02:59:14 CEST 2004


Bugs item #1035279, was opened at 2004-09-27 01:10
Message generated for change (Comment added) made by rhettinger
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1035279&group_id=5470

Category: Documentation
Group: Python 2.4
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Nick Coghlan (ncoghlan)
Assigned to: Nobody/Anonymous (nobody)
Summary: hex() and oct() documentation is incorrect

Initial Comment:
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
true.

----------------------------------------------------------------------

>Comment By: Raymond Hettinger (rhettinger)
Date: 2004-09-29 19:59

Message:
Logged In: YES 
user_id=80475

  \versionchanged{Formerly only returned an unsigned
literal.]{2.4}

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1035279&group_id=5470


More information about the Python-bugs-list mailing list