Skip to content

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

Closed

Description

@MLModel
mannequin
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']

Activity

  1. MLModel commented on Jan 11, 2009

    MLModelmannequin
    MannequinAuthor

    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.

  2. added
    docsDocumentation in the Doc dir
    stdlibStandard Library Python modules in the Lib/ directory
    on Jan 11, 2009
  3. terryjreedy commented on Jan 17, 2009

    @terryjreedy
    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.

  4. birkenfeld commented on Jan 18, 2009

    @birkenfeld
    Member

    Thanks, fixed in r68721.

  5. transferred this issue fromon Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

docsDocumentation in the Doc dirstdlibStandard Library Python modules in the Lib/ directory

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions