Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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 [email protected]

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 <[email protected]>
@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.

4 participants