Skip to content

complex.__format__ has incorrect default alignment #52236

Closed

Description

@ericvsmith
BPO 7988
Nosy @ericvsmith

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/ericvsmith'
closed_at = <Date 2010-02-22.19:28:15.954>
created_at = <Date 2010-02-22.16:19:02.120>
labels = ['interpreter-core', 'type-bug']
title = 'complex.__format__ has incorrect default alignment'
updated_at = <Date 2010-02-22.19:28:15.952>
user = 'https://github.com/ericvsmith'

bugs.python.org fields:

activity = <Date 2010-02-22.19:28:15.952>
actor = 'eric.smith'
assignee = 'eric.smith'
closed = True
closed_date = <Date 2010-02-22.19:28:15.954>
closer = 'eric.smith'
components = ['Interpreter Core']
creation = <Date 2010-02-22.16:19:02.120>
creator = 'eric.smith'
dependencies = []
files = []
hgrepos = []
issue_num = 7988
keywords = []
message_count = 2.0
messages = ['99773', '99816']
nosy_count = 1.0
nosy_names = ['eric.smith']
pr_nums = []
priority = 'low'
resolution = 'accepted'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue7988'
versions = ['Python 3.1', 'Python 2.7', 'Python 3.2']

Activity

  1. ericvsmith commented on Feb 22, 2010

    @ericvsmith
    MemberAuthor

    Complex uses left alignment by default, but should use right alignment like the other numeric types.

    >>> format(1+1j, '20.0')
    '(1+1j)              '
    
    >>> format(1.0, '20.0')
    '               1e+00'
    
    >>> format(1, '20')
    '                   1'
  2. self-assigned this
    on Feb 22, 2010
  3. added
    interpreter-core
    type-bug
    on Feb 22, 2010
  4. ericvsmith commented on Feb 22, 2010

    @ericvsmith
    MemberAuthor

    Checked in:
    trunk r78329
    py3k r78333
    release31-maint r78334

  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

interpreter-coretype-bug

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions