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

trunc(x) erroneously documented as built-in #49164

Closed
MLModel mannequin opened this issue Jan 11, 2009 · 3 comments
Closed

trunc(x) erroneously documented as built-in #49164

MLModel mannequin opened this issue Jan 11, 2009 · 3 comments
Assignees
Labels
docs Documentation in the Doc dir stdlib Python modules in the Lib dir

Comments

@MLModel
Copy link
Mannequin

MLModel mannequin commented Jan 11, 2009

BPO 4914
Nosy @birkenfeld, @terryjreedy, @MLModel

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 = 'https://github.com/birkenfeld'
closed_at = <Date 2009-01-18.10:48:24.954>
created_at = <Date 2009-01-11.05:37:14.903>
labels = ['library', 'docs']
title = 'trunc(x) erroneously documented as built-in'
updated_at = <Date 2009-01-18.10:48:24.953>
user = 'https://github.com/MLModel'

bugs.python.org fields:

activity = <Date 2009-01-18.10:48:24.953>
actor = 'georg.brandl'
assignee = 'georg.brandl'
closed = True
closed_date = <Date 2009-01-18.10:48:24.954>
closer = 'georg.brandl'
components = ['Documentation', 'Library (Lib)']
creation = <Date 2009-01-11.05:37:14.903>
creator = 'MLModel'
dependencies = []
files = []
hgrepos = []
issue_num = 4914
keywords = []
message_count = 3.0
messages = ['79590', '80005', '80089']
nosy_count = 3.0
nosy_names = ['georg.brandl', 'terry.reedy', 'MLModel']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue4914'
versions = ['Python 2.6', 'Python 3.0', 'Python 3.1']

@MLModel
Copy link
Mannequin Author

MLModel mannequin commented Jan 11, 2009

In the Numeric Types documentation for 2.6, 3.0, and 3.1 trunc is
documented as a built-in, like round, but while there is a trunc in math
there is no built-in trunc. Read some of the debate on trunc from a year
ago convinced me that this discrepancy is a documentation problem not a
problem with the built-in functions. Sorry if I'm completely off target
here, but since I noticed I figured it was worth an issue.

@MLModel MLModel mannequin assigned birkenfeld Jan 11, 2009
@MLModel MLModel mannequin added docs Documentation in the Doc dir stdlib Python modules in the Lib dir labels Jan 11, 2009
@terryjreedy
Copy link
Member

Confirmed for 3.0 that trunc does not exist in the builtins module and
is not listed in the Built-in functions section but is listed in the
Numeric Types section. So I agree "trunc(x) x truncated to Integral "
should leave the Operation table.

Yes, MM, we do want to clean up such discrepancies.

trunc is in the math module and is listed in its doc.

@birkenfeld
Copy link
Member

Thanks, fixed in r68721.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 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 stdlib Python modules in the Lib dir
Projects
None yet
Development

No branches or pull requests

2 participants