Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hex() and oct() documentation is incorrect #40955

Closed
ncoghlan opened this issue Sep 27, 2004 · 2 comments
Closed

hex() and oct() documentation is incorrect #40955

ncoghlan opened this issue Sep 27, 2004 · 2 comments
Labels
docs Documentation in the Doc dir

Comments

@ncoghlan
Copy link
Contributor

BPO 1035279
Nosy @rhettinger, @ncoghlan

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2004-09-30.00:59:13.000>
created_at = <Date 2004-09-27.06:10:39.000>
labels = ['docs']
title = 'hex() and oct() documentation is incorrect'
updated_at = <Date 2004-09-30.00:59:13.000>
user = 'https://github.com/ncoghlan'

bugs.python.org fields:

activity = <Date 2004-09-30.00:59:13.000>
actor = 'rhettinger'
assignee = 'none'
closed = True
closed_date = None
closer = None
components = ['Documentation']
creation = <Date 2004-09-27.06:10:39.000>
creator = 'ncoghlan'
dependencies = []
files = []
hgrepos = []
issue_num = 1035279
keywords = []
message_count = 2.0
messages = ['22554', '22555']
nosy_count = 2.0
nosy_names = ['rhettinger', 'ncoghlan']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue1035279'
versions = ['Python 2.4']

@ncoghlan
Copy link
Contributor Author

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.

@ncoghlan ncoghlan added the docs Documentation in the Doc dir label Sep 27, 2004
@ncoghlan ncoghlan added the docs Documentation in the Doc dir label Sep 27, 2004
@rhettinger
Copy link
Contributor

Logged In: YES
user_id=80475

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

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir
Projects
None yet
Development

No branches or pull requests

2 participants