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

[3.7] bpo-33954: Fix _PyUnicode_InsertThousandsGrouping() (GH-10623) #10717

Closed

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Nov 26, 2018

Fix str.format(), float.format() and complex.format() methods
for non-ASCII decimal point when using the "n" formatter.

Changes:

  • Rewrite _PyUnicode_InsertThousandsGrouping(): it now requires
    a _PyUnicodeWriter object for the buffer and a Python str object
    for digits.
  • Rename FILL() macro to unicode_fill(), convert it to static inline function,
    add "assert(0 <= start);" and rework its code.
    (cherry picked from commit 59423e3)

Co-authored-by: Victor Stinner vstinner@redhat.com

https://bugs.python.org/issue33954

Fix str.format(), float.__format__() and complex.__format__() methods
for non-ASCII decimal point when using the "n" formatter.

Changes:

* Rewrite _PyUnicode_InsertThousandsGrouping(): it now requires
  a _PyUnicodeWriter object for the buffer and a Python str object
  for digits.
* Rename FILL() macro to unicode_fill(), convert it to static inline function,
  add "assert(0 <= start);" and rework its code.
(cherry picked from commit 59423e3)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
@vstinner
Copy link
Member

The FILL/unicode_fill change is unwanted in 3.7, so I wrote PR #10718 instead.

@vstinner vstinner closed this Nov 26, 2018
@miss-islington miss-islington deleted the backport-59423e3-3.7 branch November 26, 2018 12:45
@miss-islington
Copy link
Contributor Author

@vstinner: Status check is done, and it's a failure ❌ .

1 similar comment
@miss-islington
Copy link
Contributor Author

@vstinner: Status check is done, and it's a failure ❌ .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting review type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants