← 返回首页
gh-92536: Argument Clinic no longer emits PyUnicode_READY() by vstinner · Pull Request #105208 · python/cpython · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

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

Provide feedback

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

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .h  (33) .py  (1) .test  (1) All 3 file types selected Viewed files
Conversations
Failed to load comments. Retry
Loading
Jump to
Jump to file
Failed to load files. Retry
Loading
Diff view
Unified
Split
Hide whitespace
Apply and reload
Show whitespace
Diff view
Unified
Split
Hide whitespace
Apply and reload
10 changes: 2 additions & 8 deletions Lib/test/clinic.test
Show comments View file Edit file Delete file Open in desktop
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -354,9 +354,6 @@ test_unicode_converter(PyObject *module, PyObject *arg)
_PyArg_BadArgument("test_unicode_converter", "argument", "str", arg);
goto exit;
}
if (PyUnicode_READY(arg) == -1) {
goto exit;
}
a = arg;
return_value = test_unicode_converter_impl(module, a);

Expand All @@ -366,7 +363,7 @@ exit:

static PyObject *
test_unicode_converter_impl(PyObject *module, PyObject *a)
/*[clinic end generated code: output=18f1e3880c862611 input=aa33612df92aa9c5]*/
/*[clinic end generated code: output=8c1625cc272c1f3d input=aa33612df92aa9c5]*/


/*[clinic input]
Expand Down Expand Up @@ -972,9 +969,6 @@ test_int_converter(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
_PyArg_BadArgument("test_int_converter", "argument 3", "a unicode character", args[2]);
goto exit;
}
if (PyUnicode_READY(args[2])) {
goto exit;
}
if (PyUnicode_GET_LENGTH(args[2]) != 1) {
_PyArg_BadArgument("test_int_converter", "argument 3", "a unicode character", args[2]);
goto exit;
Expand All @@ -996,7 +990,7 @@ exit:

static PyObject *
test_int_converter_impl(PyObject *module, int a, int b, int c, myenum d)
/*[clinic end generated code: output=800993036e078c07 input=d20541fc1ca0553e]*/
/*[clinic end generated code: output=375eedba5ca9a5b3 input=d20541fc1ca0553e]*/


/*[clinic input]
Expand Down
5 changes: 1 addition & 4 deletions Modules/_io/clinic/_iomodule.c.h
Show comments View file Edit file Delete file Open in desktop
Load diff

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions Modules/_io/clinic/textio.c.h
Show comments View file Edit file Delete file Open in desktop
Load diff

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 1 addition & 7 deletions Modules/_multiprocessing/clinic/posixshmem.c.h
Show comments View file Edit file Delete file Open in desktop
Load diff

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 1 addition & 7 deletions Modules/_sqlite/clinic/connection.c.h
Show comments View file Edit file Delete file Open in desktop
Load diff

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 1 addition & 7 deletions Modules/_sqlite/clinic/cursor.c.h
Show comments View file Edit file Delete file Open in desktop
Load diff

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions Modules/_sqlite/clinic/module.c.h
Show comments View file Edit file Delete file Open in desktop
Load diff

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

53 changes: 1 addition & 52 deletions Modules/clinic/_codecsmodule.c.h
Show comments View file Edit file Delete file Open in desktop
Load diff

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 1 addition & 10 deletions Modules/clinic/_localemodule.c.h
Show comments View file Edit file Delete file Open in desktop
Load diff

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 1 addition & 7 deletions Modules/clinic/_testclinic.c.h
Show comments View file Edit file Delete file Open in desktop
Load diff

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Toggle all file notes Toggle all file annotations

Footer

© 2026 GitHub, Inc.