Navigation Menu

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

Expand Decimal.__format__() support to include "n" #49731

Closed
rhettinger opened this issue Mar 12, 2009 · 3 comments
Closed

Expand Decimal.__format__() support to include "n" #49731

rhettinger opened this issue Mar 12, 2009 · 3 comments
Assignees
Labels
stdlib Python modules in the Lib dir

Comments

@rhettinger
Copy link
Contributor

BPO 5481
Nosy @rhettinger, @mdickinson, @ericvsmith
Superseder
  • bpo-2110: Implement format for Decimal
  • 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/mdickinson'
    closed_at = <Date 2009-03-17.23:17:13.879>
    created_at = <Date 2009-03-12.20:00:25.191>
    labels = ['library']
    title = 'Expand Decimal.__format__() support to include "n"'
    updated_at = <Date 2009-03-17.23:17:13.877>
    user = 'https://github.com/rhettinger'

    bugs.python.org fields:

    activity = <Date 2009-03-17.23:17:13.877>
    actor = 'mark.dickinson'
    assignee = 'mark.dickinson'
    closed = True
    closed_date = <Date 2009-03-17.23:17:13.879>
    closer = 'mark.dickinson'
    components = ['Library (Lib)']
    creation = <Date 2009-03-12.20:00:25.191>
    creator = 'rhettinger'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 5481
    keywords = []
    message_count = 3.0
    messages = ['83500', '83503', '83711']
    nosy_count = 3.0
    nosy_names = ['rhettinger', 'mark.dickinson', 'eric.smith']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = None
    status = 'closed'
    superseder = '2110'
    type = None
    url = 'https://bugs.python.org/issue5481'
    versions = ['Python 3.1', 'Python 2.7']

    @rhettinger
    Copy link
    Contributor Author

    >>> from decimal import Decimal as D
    >>> format(D('1234.5'), "n")
     . . .
    ValueError: Invalid format specifier: n

    @rhettinger rhettinger added the stdlib Python modules in the Lib dir label Mar 12, 2009
    @mdickinson
    Copy link
    Member

    Thanks---this is already on my list of things to get done for 3.1: see
    bpo-2110.

    @mdickinson
    Copy link
    Member

    Closing as duplicate of bpo-2110.

    @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
    stdlib Python modules in the Lib dir
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants