Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

bpo-34595: Add %T format to PyUnicode_FromFormatV()#9080

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
vstinner merged 1 commit intopython:masterfromvstinner:unicode_fromformat_t
Sep 7, 2018
Merged

bpo-34595: Add %T format to PyUnicode_FromFormatV()#9080

vstinner merged 1 commit intopython:masterfromvstinner:unicode_fromformat_t
Sep 7, 2018

Conversation

vstinner
Copy link
Member

@vstinnervstinner commentedSep 6, 2018
edited by bedevere-bot
Loading

  • Add %T format to PyUnicode_FromFormatV(), and so to
    PyUnicode_FromFormat() and PyErr_Format(), to format an object type
    name: equivalent to "%s" with Py_TYPE(obj)->tp_name.
  • Replace Py_TYPE(obj)->tp_name with %T format in unicodeobject.c.
  • Add unit test on %T format.
  • Rename unicode_fromformat_write_cstr() to
    unicode_fromformat_write_utf8(), to make the intent more explicit.

https://bugs.python.org/issue34595

* Add %T format to PyUnicode_FromFormatV(), and so to  PyUnicode_FromFormat() and PyErr_Format(), to format an object type  name: equivalent to "%s" with Py_TYPE(obj)->tp_name.* Replace Py_TYPE(obj)->tp_name with %T format in unicodeobject.c.* Add unit test on %T format.* Rename unicode_fromformat_write_cstr() to  unicode_fromformat_write_utf8(), to make the intent more explicit.
@vstinnervstinner merged commit886483e intopython:masterSep 7, 2018
@vstinnervstinner deleted the unicode_fromformat_t branchSeptember 7, 2018 16:01
@vstinner
Copy link
MemberAuthor

Thanks for the review@JulienPalard and@pablogsal!

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@JulienPalardJulienPalardJulienPalard approved these changes

@pablogsalpablogsalpablogsal approved these changes

@serhiy-storchakaserhiy-storchakaAwaiting requested review from serhiy-storchaka

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

5 participants
@vstinner@JulienPalard@pablogsal@the-knights-who-say-ni@bedevere-bot

[8]ページ先頭

©2009-2025 Movatter.jp