python / python/cpython

String formatting produces incorrect result with left-aligned zero-padded format

Open
#79,727 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

interpreter-core
Dominant language
Python
Stars
77.2k
Forks
36k
Avg merge
1d 9h
Merged PRs (30d)
558

Description

BPO 35546
Nosy @ericvsmith, @serhiy-storchaka

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 = None
created_at = <Date 2018-12-20.14:41:00.113>
labels = ['interpreter-core']
title = 'String formatting produces incorrect result with left-aligned zero-padded format'
updated_at = <Date 2018-12-20.21:41:18.739>
user = 'https://github.com/serhiy-storchaka'

bugs.python.org fields:

activity = <Date 2018-12-20.21:41:18.739>
actor = 'eric.smith'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Interpreter Core']
creation = <Date 2018-12-20.14:41:00.113>
creator = 'serhiy.storchaka'
dependencies = []
files = []
hgrepos = []
issue_num = 35546
keywords = []
message_count = 3.0
messages = ['332231', '332244', '332265']
nosy_count = 3.0
nosy_names = ['eric.smith', 'mrabarnett', 'serhiy.storchaka']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = None
url = 'https://bugs.python.org/issue35546'
versions = []

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file, test, reproduction, or formatting entry point is named in the issue. Start by reviewing BPO issue 35546 and reproducing the left-aligned zero-padded formatting case, then locate the relevant implementation and tests. Done means the case produces the expected result and a regression test covers it.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.